k290. 借款金額 (Loan)
Tags : 二分搜 前綴和
Accepted rate : 68人/84人 ( 81% ) [非即時]
評分方式:
Tolerant

最近更新 : 2023-04-06 00:07

Content

Input
Output
Sample Input #1
6 5
18 6 0 19 19 4
Sample Output #1
35
Sample Input #2
7 12
6 3 0 7 8 2 4
Sample Output #2
19
Sample Input #3
9 6
5 8 3 5 2 0 3 0 1
Sample Output #3
14
Sample Input #4
5 9
1 3 7 0 1
Sample Output #4
8
Sample Input #5
3 1000000000
999999999 999999999 999999999
Sample Output #5
2999999991
Sample Input #6
3 1
1 0 1
Sample Output #6
0
測資資訊:
記憶體限制: 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 , <10M
公開 測資點#7 (5%): 1.0s , <10M
公開 測資點#8 (5%): 1.0s , <10M
公開 測資點#9 (5%): 1.0s , <1M
公開 測資點#10 (5%): 1.0s , <10M
公開 測資點#11 (5%): 1.0s , <10M
公開 測資點#12 (5%): 1.0s , <1M
公開 測資點#13 (5%): 1.0s , <1M
公開 測資點#14 (5%): 1.0s , <10M
公開 測資點#15 (5%): 1.0s , <1M
公開 測資點#16 (5%): 1.0s , <1M
公開 測資點#17 (5%): 1.0s , <10M
公開 測資點#18 (5%): 1.0s , <1M
公開 測資點#19 (5%): 1.0s , <1M
Hint :
Tags:
二分搜 前綴和
出處:
TOI練習賽202303潛力組第1題 [管理者: mushroom.cs9 ... (mushroom) ]

Status Forum 排行

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