結果

問題 No.16 累乗の加算
ユーザー Hentci
提出日時 2022-04-22 17:02:47
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 150 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 262,600 KB
最終ジャッジ日時 2024-06-23 21:53:53
合計ジャッジ時間 6,817 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 TLE * 1 -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000003
x, N = map(int, input().split())
arr = list(map(int, input().split()))

ans = 0
for ele in arr:
    ans += pow(x, ele)

print(ans % mod)
0