# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
5890 |
2014-05-21T11:15:27 Z |
baneling100 |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1088 KB |
#include <stdio.h>
long long A, B, Ans;
int main(void)
{
scanf("%lld %lld",&A,&B);
if(B>=4)
{
Ans=((B+1)/2)*((B+1)/2+1)-(A/2)*(A/2+1);
if(A<=2)
Ans-=2;
}
printf("%lld",Ans);
return 0;
}
# |
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 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
5 |
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 |
- |