파이썬 8번 테케 ㅠㅠ
from collections import defaultdict
import sys
N,M=map(int,input().split())
speed=defaultdict(int)
arr=[]
test=[]
cur=0
for i in range(N):
a,b=map(int,input().split())
speed[i]=b
arr.append((cur,cur+a))
cur+=a
for i in range(M):
a,b=map(int,input().split())
test.append((a,b))
ans=0
cur=0
for ta,tb in test:
start,end=cur,cur+ta
for i in range(len(arr)):
a,b=arr[i]
if a==start or b==end:
if spe...
- 연습문제 톡
- 날짜
- 2024-02-01 14:58:38
- 작성자
- yerin1198
- 댓글
- 1