NOIP2005
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include <cstdio> int main(){ int a,b; scanf("%d",&a); b=(a*(a*a))+1; if(b%3==0)b=b/3; if(b%5==0)b=b/5; if(b%7==0)b=b/7; if(b%9==0)b=b/9; if(b%11==0)b=b/11; if(b%13==0)b=b/13; if(b%15==0)b=b/15; printf("%d\n",(100*a-b)/2); return 0; } |
0 of 4 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 4 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1、答案可能为负( )
2、将cstdio替换为iosteam,程序会编译错误( )
1、输入5,输出是( )
4、输入10,输出为( )