l247. G. 鳳梨關稅
Tags : BIT 樹壓平
Accepted rate: 12人/ 16人 ( 75%) [非即時]
評分方式:
Tolerant

最近更新 : 2023-08-07 11:36

Content

 

Input
Output
Sample Input #1
5 1 3 2
1 2
2 3
2 4
5 2
1 5 5
2 2
1 2 3
2 4
1 5 5
Sample Output #1
10
2
5
Sample Input #2
4 1 2 0
1 2
1 4
2 3
1 2 3
1 3 4
Sample Output #2
4
3
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (10%): 2.0s , <1K
公開 測資點#1 (10%): 2.0s , <1M
公開 測資點#2 (10%): 2.0s , <10M
公開 測資點#3 (10%): 2.0s , <10M
公開 測資點#4 (10%): 2.0s , <10M
公開 測資點#5 (10%): 2.0s , <10M
公開 測資點#6 (10%): 2.0s , <10M
公開 測資點#7 (10%): 2.0s , <10M
公開 測資點#8 (10%): 2.0s , <10M
公開 測資點#9 (10%): 2.0s , <10M
Hint :
Tags:
BIT 樹壓平
出處:
110學年度 全國 資訊學科能力競賽 [管理者: mushroom.cs9 ... (mushroom) ]

Status Forum 排行

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