結果

問題 No.16 累乗の加算
ユーザー mitsushinomitsushino
提出日時 2018-01-10 11:11:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 309 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 38,436 KB
最終ジャッジ日時 2024-12-23 15:36:10
合計ジャッジ時間 66,992 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 TLE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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


if __name__ == '__main__':
    xN = list(map(int, input().split()))
    x = xN[0]
    N = xN[1]
    exponent_list = list(map(int, input().split()))
    sum_values = 0
    for exponent in exponent_list:
        sum_values += pow(x, exponent) % 1000003
    print(sum_values % 1000003)
0