G1001
#include
int main() { char m[1000]; while(scanf(\ { int i,len,a,b,sum,k; len = strlen(m); k = 0; for(i=0;i
return 0; }
G1002
#include
int main() { int n; while(scanf(\ { int i,kk; double xx,nn = n*1.0; for(i=2;i<32;i++) { xx = pow(nn,1.0/(i*1.0)); kk = (int)xx; if(xx==kk) break; } if(i<32) printf(\ else printf(\ } return 0; }
G1003
#include
int main() { int n,k; while(scanf(\ { double m[104][10]={0},sum=0; int i,j; k++; for(i=0;i if(j>0) m[i][j]+=m[i-1][j-1]/k; if(j G1003test #include int f(int m,int n) { if(n==1) { if(m==0||m==N) return 2; else return 3;