原文:[Codeforces Round #630 (Div. 2)] - E. Height All the Same (組合數學)

Codeforces Round Div. E. Height All the Same 組合數學 E. Height All the Same time limit per test seconds memory limit per test megabytes input standard input output standard output Alice has got addicted ...

2020-04-01 18:28 9 735 推薦指數:

查看詳情

Codeforces Round #630 (Div. 2)

傳送門 A. Exercising Walk 顯然橫縱坐標我們可以分開考慮。 假設只考慮橫坐標,若\(x_2\not ={x_1}\),那么向左/向右走可以互相抵消,然后只能往一個方向走;若\(x ...

Wed Apr 01 22:27:00 CST 2020 0 694
Educational Codeforces Round 76 (Rated for Div. 2) E. The Contest

Educational Codeforces Round 76 (Rated for Div. 2) E. The Contest(dp+線段樹) 題目鏈接 題意: 給定3個人互不相同的多個數字,可以把數字移動給別人,問最少移動幾次后可以使第一個人的數字為1~m1,第二個人m1~m2,第三個 ...

Thu Nov 14 19:14:00 CST 2019 3 277
Codeforces Round #600 (Div. 2) E. Antenna Coverage

Codeforces Round #600 (Div. 2) E. Antenna Coverage(dp) 題目鏈接 題意: m個Antenna,每個Antenna的位置是$x_i$,分數是$s_i$,覆蓋范圍是$[x_i - s_i; x_i + s_i]$,每個硬幣可以使一個 ...

Sun Nov 17 17:53:00 CST 2019 7 260
Educational Codeforces Round 92 (Rated for Div. 2) E. Calendar Ambiguity

題目鏈接:http://codeforces.com/contest/1389/problem/E 大概題意:某個國家一年有m個月,每個月有d天,一個星期有w天。(x,y)且(x<y),表示x月y天,如果x月y天和y月x天是一周中的同一天,則(x,y)是好的,問你第一年中有多少個好 ...

Thu Jul 30 10:28:00 CST 2020 3 391
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM