# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1023230 |
2024-07-14T13:45:47 Z |
ConU |
다각형 (GA5_polygon) |
Python 3 |
|
14 ms |
2940 KB |
import sys
input_ = sys.stdin.readline
def minput(): return map(int, input_().split())
a, b = minput()
a = (a + a % 2) // 2
a += a == 1
b = (b - b % 2) // 2
print(b * (b + 1) - a * (a - 1))
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
11 ms |
2908 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
2908 KB |
Output is correct |
2 |
Correct |
11 ms |
2736 KB |
Output is correct |
3 |
Correct |
11 ms |
2908 KB |
Output is correct |
4 |
Correct |
10 ms |
2908 KB |
Output is correct |
5 |
Correct |
14 ms |
2908 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
11 ms |
2908 KB |
Output is correct |
2 |
Correct |
11 ms |
2908 KB |
Output is correct |
3 |
Correct |
11 ms |
2908 KB |
Output is correct |
4 |
Correct |
10 ms |
2940 KB |
Output is correct |
5 |
Correct |
11 ms |
2724 KB |
Output is correct |