A Very Very Primitive Game
1 2 3 4 5 6 7 8 9 10 11 |
a,b,c = map(int, input().split()) if a==b: if c==1: print('Takahashi') else: print('Aoki') elif a>b: print('Takahashi') elif b>a: print('Aoki') |
B – Magic 3
1 2 3 4 5 6 7 8 9 10 11 12 13 |
N,S,D = map(int, input().split()) X = [input().split() for i in range(N)] test = [] for i in range(N): if int(X[i][0]) < S and int(X[i][1]) > D: test.append(1) else: test.append(0) if 1 in test: print('Yes') else: print('No') |
コメント