#32829: python 46ms


wmouo (crazypanda)

School : 國立宜蘭高級商業職業學校
ID : 178206
IP address : [1.169.31.233]
Last Login :
2025-02-14 13:09:13
f070. 1. 韓信點兵 (HanXin) -- 2020年5月TOI練習賽新手組 | From: [36.229.153.4] | Post Date : 2022-11-10 13:19

最大的數*i+餘數

判斷這個數去用其他兩個是否符合,不符合i就+1

python 46ms,其他語言用這方法應該都能過了: )

 

 
ZeroJudge Forum