【TOI2019 四模 pC】 歐拉與TOT

題目敘述

作法

請看Codeforces提供的Editorial

程式碼如下

留言

這個網誌中的熱門文章

【TOI2019 三模 pD】自助餐

【TOI2019 二模 pA】吠市數列

【TOI2019 三模 pA】圓的最佳覆蓋