# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2813 |
2013-07-31T13:05:02 Z |
mh5664 |
다각형 (GA5_polygon) |
C++ |
|
0 ms |
1080 KB |
#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 time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
1080 KB |
open (syscall #2) was called by the program (disallowed syscall) |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |