Submission #7807

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