-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
31 lines (25 loc) · 676 Bytes
/
test.py
File metadata and controls
31 lines (25 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# if __name__ == '__main__':
# nums = list(map(int, input().split()))
# vals = list(set(nums))
# vals.sort()
# if len(vals) < 3:
# print(max(vals))
# else:
# print(vals[-3])
def dfs(a, b, num):
if a >= b:
return num % 2 == 1
if num % 2 == 1:
return dfs(a*2, b, num+1) and dfs(a+1,b,num+1)
return dfs(a*2, b, num+1) or dfs(a+1,b,num+1)
if __name__ == '__main__':
t = int(input())
ans = list()
for _ in range(t):
x,y = map(int, input().split())
if dfs(x,y,0):
ans.append('kou')
else:
ans.append('yukari')
for x in ans:
print(x)