GNU C++ ok, Visual C++ TLE

Revision en2, by Alexey, 2022-08-22 11:27:55

I have two submissions of the same code 169242883 and 169242938 of the problem 812 E one with compiler Visual C++ 17, another with compiler GNU C++ 17.

Visual C++ gives TLE, GNU oks. Looks like sync_with_stdio doesn't work properly in Visual C++. Has anybody faced this problem before?

Upd:: this seems to be an answer. VC++ in fact just sets flag and doesn't break the sync between C and C++ streams, which btw is allowed by the standard.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Alexey 2022-08-22 11:27:55 258
en1 English Alexey 2022-08-21 16:54:36 493 Initial revision for English translation
ru1 Russian Alexey 2022-08-21 16:50:47 493 Первая редакция (опубликовано)