단계별로 풀어보기 - 재귀 - 3단계 https://www.acmicpc.net/problem/2447 #include using namespace std; void star(int i,int j,int n) { if((i/n)%3==1&&(j/n)%3==1) { cout
단계별로 풀어보기 - 재귀 - 2단계 https://www.acmicpc.net/problem/10870 #include using namespace std; int fibonacci(int F) { if(F>n; cout
단계별로 풀어보기 - 재귀 - 1단계 https://www.acmicpc.net/problem/10872 #include using namespace std; int factorial(int N) { if(N>1) { return N*factorial(N-1); } else { return 1; } } int main() { int N; cin>>N; cout
단계별로 풀어보기 - 기본 수학 2 - 11단계 https://www.acmicpc.net/problem/1002 #include #include using namespace std; int main() { int T; cin>>T; for(int i=0;i>x1>>y1>>r1>>x2>>y2>>r2; double result=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); if(result==0) { if(r1==r2) { cout
단계별로 풀어보기 - 기본 수학 2 - 10단계 https://www.acmicpc.net/problem/3053 #include #include #define PI 3.1415926535897932 using namespace std; int main() { long double R; cin>>R; cout
단계별로 풀어보기 - 기본 수학 2 - 9단계 https://www.acmicpc.net/problem/4153 #include #include using namespace std; int main() { long x,y,z; while(1) { cin>>x>>y>>z; if(x==0&&y==0&&z==0) { break; } x=pow(x,2);y=pow(y,2);z=pow(z,2); if(x+y==z||x+z==y||y+z==x) { cout