q376. 取締違規 (Police)
Tags : 前綴和 差分
Accepted rate : 51人/56人 ( 91% ) [非即時]
評分方式:
Tolerant

最近更新 : 2025-04-30 13:17

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

Status Forum 排行

ID User Problem Subject Hit Post Date
45621 leeguanhan09 ... (李冠翰) q376
147 2025-03-24 16:15