結果

問題 No.16 累乗の加算
ユーザー ABKZABKZ
提出日時 2021-11-07 21:29:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 124 bytes
コンパイル時間 1,886 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 71,452 KB
最終ジャッジ日時 2023-08-09 08:39:39
合計ジャッジ時間 4,202 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,436 KB
testcase_01 AC 76 ms
71,452 KB
testcase_02 AC 82 ms
71,296 KB
testcase_03 AC 80 ms
71,424 KB
testcase_04 AC 73 ms
71,184 KB
testcase_05 AC 75 ms
71,348 KB
testcase_06 AC 72 ms
71,192 KB
testcase_07 AC 72 ms
71,292 KB
testcase_08 AC 68 ms
71,344 KB
testcase_09 AC 71 ms
71,288 KB
testcase_10 AC 73 ms
71,320 KB
testcase_11 AC 71 ms
71,344 KB
testcase_12 AC 80 ms
71,252 KB
testcase_13 AC 81 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x, N = map(int, input().split())
exps = map(int, input().split())

print(sum([pow(x, a, 1000003) for a in exps]) % 1000003)
0