why tle?I passed the pretest and passed after the system test (Round #751 Div 1 C)
https://codeforces.com/contest/1601/submission/133008791 https://codeforces.com/contest/1601/submission/133052200 two code are the same
Atcoder ABC #354 Solution Discussion
Interview with orz | IMO Gold Medalist, ICPC World Finalist, IGM in CF