結果
| 問題 | No.16 累乗の加算 |
| コンテスト | |
| ユーザー |
shika_126
|
| 提出日時 | 2022-03-20 20:09:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 138 bytes |
| 記録 | |
| コンパイル時間 | 1,139 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-24 00:51:48 |
| 合計ジャッジ時間 | 2,518 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
x,n = [int(i) for i in input().split()]
l = [int(i) for i in input().split()]
s = 0
m = 1000003
for i in l:
s += pow(x,i,m)
print(s%m)
shika_126