fork(1) download
  1. """Przedszkolanka"""
  2. #Liczba testów
  3. t = int(input())
  4.  
  5. for i in range(0,t):
  6. dzieci = input()
  7. dzieci = dzieci.split()
  8. d1 = int(dzieci[0])
  9. d2 = int(dzieci[1])
  10.  
  11. while d1 != d2:
  12. if d1 > d2:
  13. d2 = d2+d2
  14. elif d2 > d1:
  15. d1 = d1+d1
  16. print (d1)
Runtime error #stdin #stdout #stderr 0.16s 23576KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
EOFError: EOF when reading a line