摘要:
A:水题代码: 1 #include 2 #include 3 using namespace std; 4 5 int she[25]; 6 7 int n,m,c; 8 9 int main()10 {11 int ca=1,a;12 while(scanf("%d%d%d",&n,&m,&c)&&(n+m+c))13 {14 printf("Sequence %d\n",ca++);15 for(int i=1; ic)puts("Fuse was blown.");26 else27 { 阅读全文
摘要:
A:Pythagoras'sRevenge代码: 1 #include 2 #define ll long long 3 using namespace std; 4 int main() 5 { 6 ll a; 7 while(scanf("%lld",&a)!=EOF) 8 { 9 if (a==0) break;10 ll aa=a*a;11 int ans=0;12 for(ll i=1;ia) ans++;19 }20 printf("%d\n",ans);21 ... 阅读全文