Submission #7817

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