結果

問題 No.16 累乗の加算
ユーザー gimgim
提出日時 2017-09-13 16:08:17
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 116 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 24,724 KB
最終ジャッジ日時 2024-04-25 09:17:18
合計ジャッジ時間 6,560 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,144 KB
testcase_01 AC 10 ms
6,272 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

x, N=map(int, raw_input().split())
a=map(int, raw_input().split())
s=0


for i in a:
    s+=x**i


print s%1000003

0