結果

問題 No.16 累乗の加算
ユーザー koyoprokoyopro
提出日時 2015-09-20 13:51:25
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 195 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 6,576 KB
実行使用メモリ 5,976 KB
最終ジャッジ日時 2023-09-26 14:02:47
合計ジャッジ時間 6,770 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

# -*- coding: utf-8 -*-

# x N
# a1 a2 … aN

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

total = 0
for i in xrange(N):
    total += x ** a[i]

print total % 1000003
0