# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2888 |
2013-08-01T11:05:10 Z |
zyslee |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1080 KB |
#include<stdio.h>
int main()
{
int a, b, aa, bb;
freopen("input.txt","r",stdin);
freopen("outputt.txt","w",stdout);
scanf("%d %d", &a, &b);
aa = (a-1)/2;
bb = (b+1)/2;
printf("%d", ((bb*(bb+1)/2)-(aa*(aa+1)/2))*2);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
1080 KB |
open (syscall #2) was called by the program (disallowed syscall) |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |