in this link the problem described but not told EOF but they not told how to terminate the input .......thats why we need to stop input as EOF(eof in c programming i knew that)....but in python i can't
this is the similar type of problem is easy problem but runtime error because i can not terminate the input in c programming i can use (Ctrl + z) to terminate this kind of problem that is the EOF in c programming but i cant terminate input in python for this kind of problem, i think now you realize what i said.........another problem : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3565
- Code: Select all
x = input()
when i use "while True" but it not accepted because of not terminate the input
help to solve the problem whithout using "while True"
thanks in advance