用户输出
25646167
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#68856 | #110. czq的模法数列 | Accepted | 100 | 602 ms | 4288 K | Python 3 / 103 B | 焱 | 2022-04-16 12:15:01 |
l=list(map(int,input().split()))
n=l[0]
q=l[1]
p=l[2]
s=int(q**n-1)//int(q-1)
x=int(s%p)
print(x)
用户输出
192041748
系统信息
Exited with return code 0
用户输出
917164423
系统信息
Exited with return code 0
用户输出
626438667
系统信息
Exited with return code 0