結果
| 問題 | No.16 累乗の加算 |
| コンテスト | |
| ユーザー |
shika_126
|
| 提出日時 | 2022-03-20 20:09:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 138 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-10-07 08:19:05 |
| 合計ジャッジ時間 | 1,461 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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