Submission #2892

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