Is cerr evil?

Revision en1, by NM_Mehedy, 2021-06-12 23:53:15

I solved this problem in CF #705. Screenshot-450

But it failed system testing showing Screenshot-451

TLE code

Accepted code after contest

If we compare this two submissions-

Screenshot-452

This is the only difference.

Definition of see(...) in my code

The main thing is I used cerr for debugging and it got TLE.

Can anyone explain Why did it happen?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English NM_Mehedy 2021-06-12 23:53:15 1035 Initial revision (published)