Xidian Online Judge WebBoard
[ New Thread ]
Problem 1011 >> 答案错误n次了,有大佬帮忙看一下吗
17029230026 @ 2018-06-03 13:42:12
[ Quote ] [ Edit ] [ Delete ] 1#
#include<stdio.h>
int main()
{
long long n,i,j;
while(scanf("%lld",&n)!=EOF)
{
long long s;s=0;
for(i=1;i<=n;i++)
{
j=n/i;
s=s+j;
}
if(s%2==0)
printf("even");
else
printf("odd");
}
return 0;
}
[Top] [Previous Page] [Next Page]
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2014 Xidian ACM Online Judge TEAM
GPL2.0 2003-2014 HUSTOJ Project TEAM