用户输出
1
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#2312 | #1002. 找倍数 | Time Limit Exceeded | 20 | 12391 ms | 2928 K | Python 3 / 312 B | JimmyHu | 2023-11-17 10:28:01 |
def istimes(num):
aim_num = 998244353
t = 0; check = 1
while check:
x = num - t * aim_num
if aim_num - 1 >= x >= 0:
check = 0
return x
if num >= aim_num:
t += 1
else:
t -= 1
print(istimes(int(input())))
用户输出
998244349
系统信息
Exited with return code 0