JZOJ-senior-5955. 【NOIP2018模擬11.7A組】strategy

Time Limits: 1000 ms Memory Limits: 262144 KB Description Input Output 一行 n 個整數,第 i 個數表示和第 i 個敵人結盟時的最小代價。 Sample Input 4 2 1 5 2 3 2 4 3 5 Sample Output 8 8 7 6 Data Constraint 對於 70% 的數據,保證 n ≤ 400。
相關文章
相關標籤/搜索