백준 32193번: 승강장의 깊이 #Python

ColorlessDia·2025년 2월 15일

algorithm/baekjoon

목록 보기
454/809
import sys

input = sys.stdin.readline

N = int(input())
A, B = 0, 0

for _ in range(N):
    a, b = map(int, input().split())

    A += a
    B += b

    print(A - B)

0개의 댓글