ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1877. Bicycle Codes

Python почему Runtime error
Posted by Vigi 5 Oct 2015 18:05
from random import randint

v1 = ''
v2 = ''
cod1 = ''.join(map(str, [randint(0, 9) for _ in range(1, 5)]))
cod2 = ''.join(map(str, [randint(0, 9) for _ in range(1, 5)]))

while v1 != cod1 and v2 !=cod2:
    n = input().split()
    v1 = n[0]
    v2 = n[1]
    if v1 != cod1 and v2 != cod2:
        print('no')
print('yes')