結果

問題 No.16 累乗の加算
ユーザー szkhts
提出日時 2022-09-25 08:09:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 139 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,932 KB
最終ジャッジ日時 2024-12-22 12:46:45
合計ジャッジ時間 67,060 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 TLE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

x, n = map(int,input().split())
a = list(map(int, input().split()))

total = 0
for ai in a:
    total += pow(x, ai)

print(total % 1000003)
0