Getting TLE, help please

Revision en1, by ALT__, 2021-10-08 10:01:27

Problem Link: https://codeforces.net/contest/1417/problem/C

My solution: https://codeforces.net/contest/1417/submission/131124634

My solution is very similar (or almost same) to the editorial's solution: https://codeforces.net/blog/entry/83036 The only difference I noticed is that I'm using cin/cout instead of scanf/printf and I'm using vectors instead of arrays. Also, I'm using #define int long long.

Tags tle, help, yeet

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ALT__ 2021-10-08 10:01:27 436 Initial revision (published)