結果

問題 No.16 累乗の加算
コンテスト
ユーザー HIROPON87069639
提出日時 2016-02-21 23:48:46
言語 PyPy2
(7.3.20)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 140 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 247 ms
コンパイル使用メモリ 76,324 KB
最終ジャッジ日時 2025-12-03 19:27:52
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

x, N = map(int, raw_input().split())
n = map(int, raw_input().split())
f = 1000003
tot = 0
for i in n:
    tot += pow(x, i, f)
print tot % f
0