# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7781 |
2014-08-19T10:06:27 Z |
gs14004 |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1088 KB |
#include <cstdio>
long long f(long long p){
p >>= 1;
long long res = p*(p+1)/2;
return res-1;
}
int main(){
long long s,e;
scanf("%lld %lld",&s,&e);
printf("%lld",2*(f(e)-f(s-1)));
}
# |
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 |
- |