用户输出
25646167
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#80952 | #110. czq的模法数列 | Accepted | 100 | 227 ms | 2832 K | Python 3 / 126 B | K-ON | 2022-08-05 17:31:08 |
a,b,mod=map(int,input().split())
ans=0
it=1
for i in range(a):
ans=(ans+it)%mod
it=(it*b%mod)%mod
print(ans)
用户输出
192041748
系统信息
Exited with return code 0
用户输出
917164423
系统信息
Exited with return code 0
用户输出
626438667
系统信息
Exited with return code 0