题目:
代码:
for num in range(1, 1000000008):
val = (num * 2021) % 1000000007
if val == 999999999:
print(num)
break
结果:17812964
题目:
代码:
for num in range(1, 1000000008):
val = (num * 2021) % 1000000007
if val == 999999999:
print(num)
break
结果:17812964