A問題 Rock-paper-scissors
1 2 3 4 5 6 7 8 |
x,y = map(int, input().split()) s = [0,1,2] if x-y==0: print(x) else: for i in range(3): if s[i]!=x and s[i]!=y: print(s[i]) |
1 2 3 4 5 6 7 8 |
x,y = map(int, input().split()) s = [0,1,2] if x-y==0: print(x) else: for i in range(3): if s[i]!=x and s[i]!=y: print(s[i]) |
コメント