# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2914 |
2013-08-03T11:24:17 Z |
alephnull |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1096 KB |
#include <cstdio>
#include <algorithm>
using namespace std;
int p[2000];
typedef long long ll;
ll s(ll n){
if(n&1)return s(n-1);
return (n/2)*(n/2+1);
}
int main() {
ll a,b;scanf("%lld %lld",&a,&b);
printf("%lld",s(b)-s(a-1));
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1096 KB |
Output is correct |
2 |
Incorrect |
0 ms |
1096 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 |
- |