# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2702 |
2013-07-31T03:32:46 Z |
gs13068 |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1088 KB |
#include<cstdio>
int main()
{
int i,a,b,sum=0;
scanf("%d%d",&a,&b);
for(i=4;i<=10000;i+=2)
{
if(i>=a&&i<=b)
sum+=i;
}
printf("%d",sum);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1088 KB |
Output is correct |
2 |
Correct |
0 ms |
1088 KB |
Output is correct |
3 |
Correct |
0 ms |
1088 KB |
Output is correct |
4 |
Correct |
0 ms |
1088 KB |
Output is correct |
5 |
Correct |
0 ms |
1088 KB |
Output is correct |