# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7876 |
2014-08-22T10:44:18 Z |
comet |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1672 KB |
#include<iostream>
int main(){
int a,b;
std::cin>>a>>b;
if(a%2)a++;
if(b%2)b--;
if(b<4)std::cout<<"0";
else std::cout<<(a+b)*(b-a+2)/2;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1672 KB |
Output is correct |
2 |
Correct |
0 ms |
1672 KB |
Output is correct |
3 |
Incorrect |
0 ms |
1672 KB |
Output isn't correct |
4 |
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 |
- |