- 2023-11-14P4933 大师
P4933大师基础思路状态设置\(F_{k,i}\)表示公差为\(k\)前\(i\)个电塔的等差数列数。两个\(F\)一个公差为\(k\),一个为\(-k\)。状态转移对于\(F_{k,i}\),从所有在\(i\)之前的的与第\(i\)个电塔差为\(j\)的\(F\)方案加一转移而来。 for(intk=
- 2023-04-24The 2017 ACM - ICPC Asia Ho Chi Minh City Regional Contest
ThetunnelsofCuChiareanimmensenetworkofundergroundtunnelsconnectingroomslocatedintheCuChiDistrictofHoChiMinhCity.TheCuChitunnelswerethelocationofseveralmilitarycampaignsinthe1960s.Nowadays,itisapopulartouristdes
- 2023-01-09瀑布流布局
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"conten
- 2022-12-30单调栈和单调队列
《单调栈》#include<iostream>#include<cstring>#include<algorithm>#include<stack>usingnamespacestd;constintN=3*1e6+2;intn;structnode{