== 소감 == -현재 Accepted 되었지만, 시간도 많이 느리고 코드도 길어진거 같아서 나중에 다시 한번 코딩해볼 생각~~ == 코드 == {{{~cpp #include #include using namespace std; int step, i, j, temp, counting; #define x_loc 1 #define y_loc 0 int calculate(int st, int xy) { i=xy; while(true) { counting=1; if(st==1) return 1; if(st>pow(i,2) && st<=pow(i+2,2)) { temp = st-pow(i,2); for(j=1; j>step) { if(step==0) break; cout << calculate(step, x_loc) << " " << calculate(step, y_loc) << endl; } return 0; } }}}