a235: 鑿井取水 (Water)
Tags :
Accepted rate : 12人/13人 ( 92% ) [非即時]
評分方式:
Tolerant

最近更新 : 2023-04-05 13:54

Content

TOIP 202303-b3 鑿井取水 (Water)

ps. $剩餘水量 < 0$ 才代表枯竭

Input
Output
Sample Input #1
4 5
1 6
1 5
1 6
1 2
Sample Output #1
1
Sample Input #2
3 15
1 10
1 8
1 12
Sample Output #2
-1
Sample Input #3
4 10
3 3 1 2
4 2 3 6 2
2 7 7
3 1 2 3
Sample Output #3
3
Sample Input #4
5 100
3 10 10 20
1 50
2 110 10
5 25 60 10 30 15
1 80
Sample Output #4
-1
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (5%): 0.5s , <1M
公開 測資點#1 (5%): 0.5s , <1M
公開 測資點#2 (5%): 0.5s , <1M
公開 測資點#3 (5%): 0.5s , <1K
公開 測資點#4 (5%): 0.5s , <1K
公開 測資點#5 (5%): 0.5s , <1K
公開 測資點#6 (5%): 0.5s , <1M
公開 測資點#7 (5%): 0.5s , <1M
公開 測資點#8 (5%): 0.5s , <1M
公開 測資點#9 (5%): 0.5s , <1M
公開 測資點#10 (5%): 0.5s , <1M
公開 測資點#11 (5%): 0.5s , <1M
公開 測資點#12 (5%): 0.5s , <1M
公開 測資點#13 (5%): 0.5s , <1M
公開 測資點#14 (5%): 0.5s , <1M
公開 測資點#15 (5%): 0.5s , <1M
公開 測資點#16 (5%): 0.5s , <1M
公開 測資點#17 (5%): 0.5s , <1M
公開 測資點#18 (5%): 0.5s , <1M
公開 測資點#19 (5%): 0.5s , <1M
Hint :
Tags:
出處:
TOI練習賽202303新手組第3題snail [管理者:
ktlai (K.我已霸榜.Tlai)
]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」