답안 #1023230

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1023230 2024-07-14T13:45:47 Z ConU 다각형 (GA5_polygon) Python 3
40 / 100
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))
# 결과 실행 시간 메모리 Grader output
1 Incorrect 11 ms 2908 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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