How to speed up this code?

Revision en1, by gastivy, 2021-05-14 17:58:02

This is a very simple code so I didn't expect it to take more than 1000 ms. How could I optimize it? https://codeforces.com/contest/380/submission/116189186

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English gastivy 2021-05-14 17:58:02 183 Initial revision (published)