Submission #7784

#TimeUsernameProblemLanguageResultExecution timeMemory
7784gs13023다각형 (GA5_polygon)C++98
100 / 100
0 ms1088 KiB
#include<cstdio> long long f(int n) { if(n<4)return 2; long long t=n/2; return t*(t+1); } int main() { int a,b; scanf("%d%d",&a,&b); printf("%lld",f(b)-f(a-1)); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...