답안 #632583

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
632583 2022-08-20T11:11:41 Z karolb2011 Potatoes and fertilizers (LMIO19_bulves) Python 3
24 / 100
802 ms 9440 KB
import sys
input = sys.stdin.readline
n=int(input())
w=0
p=0
b=0
for i in range(n):
    pi,bi=list(map(int,input().split()))
    p+=pi
    b+=bi
    w+=abs(p-b)
print(w)
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2748 KB Output is correct
2 Correct 17 ms 2824 KB Output is correct
3 Correct 20 ms 2872 KB Output is correct
4 Correct 95 ms 3020 KB Output is correct
5 Correct 208 ms 3428 KB Output is correct
6 Correct 389 ms 6136 KB Output is correct
7 Correct 802 ms 9440 KB Output is correct
8 Correct 773 ms 7684 KB Output is correct
9 Correct 769 ms 7016 KB Output is correct
10 Correct 756 ms 4708 KB Output is correct
11 Correct 731 ms 4700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2748 KB Output is correct
2 Correct 17 ms 2824 KB Output is correct
3 Correct 20 ms 2872 KB Output is correct
4 Correct 95 ms 3020 KB Output is correct
5 Correct 208 ms 3428 KB Output is correct
6 Correct 389 ms 6136 KB Output is correct
7 Correct 802 ms 9440 KB Output is correct
8 Correct 773 ms 7684 KB Output is correct
9 Correct 769 ms 7016 KB Output is correct
10 Correct 756 ms 4708 KB Output is correct
11 Correct 731 ms 4700 KB Output is correct
12 Incorrect 208 ms 4472 KB Output isn't correct
13 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2748 KB Output is correct
2 Correct 17 ms 2824 KB Output is correct
3 Incorrect 13 ms 2772 KB Output isn't correct
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2748 KB Output is correct
2 Correct 17 ms 2824 KB Output is correct
3 Correct 20 ms 2872 KB Output is correct
4 Incorrect 13 ms 2772 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2748 KB Output is correct
2 Correct 17 ms 2824 KB Output is correct
3 Correct 20 ms 2872 KB Output is correct
4 Incorrect 13 ms 2772 KB Output isn't correct
5 Halted 0 ms 0 KB -