結果

問題 No.16 累乗の加算
ユーザー convexineqconvexineq
提出日時 2020-11-22 23:56:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 155 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 71,576 KB
最終ジャッジ日時 2023-09-30 23:08:41
合計ジャッジ時間 2,278 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,244 KB
testcase_01 AC 69 ms
71,240 KB
testcase_02 AC 67 ms
71,432 KB
testcase_03 AC 66 ms
71,288 KB
testcase_04 AC 71 ms
71,520 KB
testcase_05 AC 69 ms
71,236 KB
testcase_06 AC 69 ms
71,576 KB
testcase_07 AC 68 ms
71,248 KB
testcase_08 AC 69 ms
71,520 KB
testcase_09 AC 68 ms
71,084 KB
testcase_10 AC 68 ms
71,228 KB
testcase_11 AC 70 ms
71,364 KB
testcase_12 AC 68 ms
71,224 KB
testcase_13 AC 67 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline = sys.stdin.readline
read = sys.stdin.read

x,n,*a = map(int,read().split())
MOD = 1000003
print(sum(map(lambda c:pow(x,c,MOD),a))%MOD)
0