Submission #2813

#TimeUsernameProblemLanguageResultExecution timeMemory
2813mh5664다각형 (GA5_polygon)C++98
0 / 100
0 ms1080 KiB
#include <stdio.h> FILE *in = fopen ("input.txt", "r"), *out = fopen ("output.txt", "w"); int main () { long long int n, m; fscanf (in, "%lld %lld", &n, &m); long long sol; --n; if (n % 2 == 1) --n; if (m % 2 == 1) --m; sol = ((m / 2) + 1) * m / 2 - ((n / 2) + 1) * n / 2; fprintf (out, "%d", sol); fclose (in); fclose (out); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...