modify Traiangle2.cpp use space(K)