endl giving TLE but \n not?

Revision en1, by Aden_blizzard, 2021-02-06 22:44:24

i was practicing this question https://www.codechef.com/problems/COPR16G/ and i found that endl gives TLE but \n doesnot why? is it because endl is flushing after giving a newline?

Tags linear diophantine

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Aden_blizzard 2021-02-06 22:44:24 208 Initial revision (published)