Submission #2887

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