# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2773 |
2013-07-31T09:29:05 Z |
ksmin1114 |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1088 KB |
#include<stdio.h>
int main(){
long long int n,m,i,t=0;
scanf("%lld %lld",&n,&m);
if(n==1||n==2)n==3;
if(n%2==1)n++;
if(n==m){printf("%d",n);return 0;}
t=m-n;
t/=2;
t*=(n+m);
printf("%lld",(m-n)/2*(n+m));
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1088 KB |
Output is correct |
2 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
3 |
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 |
- |