結果

問題 No.16 累乗の加算
ユーザー NoNo
提出日時 2017-05-23 22:23:22
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
TLE  
実行時間 -
コード長 146 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 11,680 KB
実行使用メモリ 28,984 KB
最終ジャッジ日時 2023-10-19 15:42:13
合計ジャッジ時間 6,889 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,020 KB
testcase_01 AC 31 ms
10,020 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 #

ss = input().split()
x = int(ss[0])
n = int(ss[1])
a = list(map(int,input().split()))
ans = 0
for i in a:
    ans += pow(x,i)
print(ans % 1000003)
0