nがとても大きいときに、TLEせずにnCr mod pを求める(実装も載っているよ)
SuperCon2022 参加記
joisc2008 台風 (Typhoon) (難易度9)
abc056 D - No Need (400点)
CodeForces Round #736 Div. 2 E - The Three Little Pigs
keyence2019 D - Double Landscape
joi2016ho C - 鉄道運賃 (Train Fare)(難易度8)
ABC024 D - 動的計画法
maguro
joisc2010 戦国時代(Sengoku)(難易度8)
joisc2009 誘拐(Abduction)(難易度8)
cf16-final D - Pair Cards(700点)
joi2021yo2 B - パンケーキ(Pancake)(難易度7)
joisc2009 冊子の配布(distribution)(難易度8)
joisc2015 遺産相続(Inheritance)(難易度8)
joisc2011 解読(Deciphering)(難易度8)
joi2015ho B - ケーキの切り分け2(Cake 2)(難易度6)
yosupo judge ACコード
期待値に関するメモ
soundhound2018_summer_qual D - Saving Snuuk