题解 | #小美的外卖订单编号#(Python3)
小美的外卖订单编号
https://www.nowcoder.com/practice/91506d447f3445c999a27d556e530a37
t = int(input()) for _ in range(0, t): m, x = map(int, input().split()) # 对m取余,0……m-1,以下操作可以满足 x -= 1 x %= m x += 1 print(x)#15天刷题#
小美的外卖订单编号
https://www.nowcoder.com/practice/91506d447f3445c999a27d556e530a37
t = int(input()) for _ in range(0, t): m, x = map(int, input().split()) # 对m取余,0……m-1,以下操作可以满足 x -= 1 x %= m x += 1 print(x)#15天刷题#
相关推荐