How to write endless input problems in Python3?

Revision en1, by BMU1999, 2019-05-23 16:52:52

For exp.: https://www.e-olymp.com/en/contests/12949/problems/123233

How can I write this in Python3?

I searched this on Google but it is not working.

Please help if you can.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English BMU1999 2019-05-23 16:52:52 292 Initial revision (published)