結果
| 問題 | No.16 累乗の加算 |
| コンテスト | |
| ユーザー |
shika_126
|
| 提出日時 | 2022-03-20 20:05:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 82,352 KB |
| 実行使用メモリ | 260,916 KB |
| 最終ジャッジ日時 | 2024-10-07 08:14:00 |
| 合計ジャッジ時間 | 6,943 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 11 |
ソースコード
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 += (x**(i%m)%m)
print(s%m)
shika_126