結果

問題 No.2394 部分和乗総和
ユーザー 👑 p-adicp-adic
提出日時 2023-07-23 12:39:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 98 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 82,388 KB
実行使用メモリ 91,696 KB
最終ジャッジ日時 2024-04-12 11:01:42
合計ジャッジ時間 3,180 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,612 KB
testcase_01 AC 35 ms
52,308 KB
testcase_02 AC 37 ms
52,676 KB
testcase_03 AC 37 ms
52,460 KB
testcase_04 AC 36 ms
52,388 KB
testcase_05 AC 36 ms
52,440 KB
testcase_06 AC 35 ms
52,872 KB
testcase_07 AC 36 ms
51,824 KB
testcase_08 AC 36 ms
52,248 KB
testcase_09 AC 35 ms
53,080 KB
testcase_10 AC 39 ms
52,828 KB
testcase_11 AC 40 ms
52,312 KB
testcase_12 AC 35 ms
53,072 KB
testcase_13 AC 56 ms
61,184 KB
testcase_14 AC 99 ms
67,468 KB
testcase_15 AC 104 ms
68,080 KB
testcase_16 AC 134 ms
70,872 KB
testcase_17 AC 215 ms
82,616 KB
testcase_18 AC 217 ms
82,700 KB
testcase_19 AC 218 ms
82,696 KB
testcase_20 AC 229 ms
91,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def J():
	return map(int,input().split())
N,M,B=J()
n=1
for a in J():n=n*(1+pow(M,a,B))%B
print(n)
0