r393. 餅乾促銷 (Cookies)
Tags : 無限背包問題
Accepted rate: 5人/ 6人 ( 83%) [非即時]
評分方式:
Tolerant

最近更新 : 2026-01-13 00:47

Input
Output
Sample Input #1
2 14
2 1
5 4
Sample Output #1
9
Sample Input #2
2 8
5 4
3 1
Sample Output #2
5
Sample Input #3
6 8
2 1
3 1
4 3
5 4
5 5
4 1
Sample Output #3
5
Sample Input #4
7 7
5 3
3 3
4 1
5 1
3 1
5 2
4 4
Sample Output #4
4
Sample Input #5
1 1
2 5
Sample Output #5
2
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (5%): 1.0s , <1K
公開 測資點#1 (5%): 1.0s , <1K
公開 測資點#2 (5%): 1.0s , <1K
公開 測資點#3 (5%): 1.0s , <1K
公開 測資點#4 (5%): 1.0s , <1K
公開 測資點#5 (5%): 1.0s , <1K
公開 測資點#6 (5%): 1.0s , <1K
公開 測資點#7 (5%): 1.0s , <1K
公開 測資點#8 (5%): 1.0s , <1K
公開 測資點#9 (5%): 1.0s , <1K
公開 測資點#10 (5%): 1.0s , <1K
公開 測資點#11 (5%): 1.0s , <1K
公開 測資點#12 (5%): 1.0s , <1K
公開 測資點#13 (5%): 1.0s , <1K
公開 測資點#14 (5%): 1.0s , <1K
公開 測資點#15 (5%): 1.0s , <1K
公開 測資點#16 (5%): 1.0s , <1K
公開 測資點#17 (5%): 1.0s , <1K
公開 測資點#18 (5%): 1.0s , <1K
公開 測資點#19 (5%): 1.0s , <1K
Hint :

潛力組202511

感謝 leeguanhan09 ... (李冠翰) 協助加強測資。

2026/01/13 00:24 加強測資並重測全部程式碼。

Tags:
無限背包問題
出處:
TOI 練習賽 202511 潛力組 第2題 [管理者: liaoweichen1 ... (M_SQRT) ]

Status Forum 排行

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