結果

問題 No.16 累乗の加算
ユーザー nebukuro09nebukuro09
提出日時 2016-09-03 10:57:14
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 186 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-27 15:16:45
合計ジャッジ時間 895 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

x, N = map(int, raw_input().split())
a = map(int, raw_input().split())
p = [1 for i in xrange(101)]
for i in xrange(1, 101):
    p[i] = (p[i-1] * x) % 1000003
print sum(p[i] for i in a)
0