Submission #16017

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