Untitled
unknown
plain_text
a year ago
220 B
9
Indexable
import sys
input = sys.stdin.readline
N = int(input())
def helper(n,k):
if k >= n-1:
return 1
else:
return n
for i in range(N):
n, k = list(map(int, input().split()))
print(helper(n,k))Editor is loading...
Leave a Comment