Submission #2879

#TimeUsernameProblemLanguageResultExecution timeMemory
2879cki86201다각형 (GA5_polygon)C++98
100 / 100
0 ms1088 KiB
#include<stdio.h> long long int sum(int x) { if(x<2)return 0; x/=2; long long int ret=x; return ret*(ret+1)-2; } int main() { int a,b;scanf("%d%d",&a,&b); printf("%lld",sum(b)-sum(a-1)); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...