Submission #2878

#TimeUsernameProblemLanguageResultExecution timeMemory
2878cki86201다각형 (GA5_polygon)C++98
0 / 100
0 ms1088 KiB
#include<stdio.h> long long int sum(int x) { x/=2; long long int ret=x; return ret*(ret+1); } 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...