2516:
include
include
using namespace std; int main(){ int a,b,c,o=0; for(a=0;a<=6;a++){ for(b=0;b<=6;b++){ c=a+a+1+a+2+a+3+b+b+1+b+2+b+3; int f=sqrt(c); if(f*f==c){ o++; } } } cout<<o; return 0; }
2516:
using namespace std; int main(){ int a,b,c,o=0; for(a=0;a<=6;a++){ for(b=0;b<=6;b++){ c=a+a+1+a+2+a+3+b+b+1+b+2+b+3; int f=sqrt(c); if(f*f==c){ o++; } } } cout<<o; return 0; }
可以用@mike来提到mike这个用户,mike会被高亮显示。如果你真的想打“@”这个字符,请用“@@”。