結果

問題 No.16 累乗の加算
ユーザー shobonvipshobonvip
提出日時 2022-03-12 14:41:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 118 bytes
コンパイル時間 3,135 ms
コンパイル使用メモリ 86,744 KB
実行使用メモリ 71,348 KB
最終ジャッジ日時 2023-10-15 03:49:21
合計ジャッジ時間 2,140 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,276 KB
testcase_01 AC 73 ms
71,284 KB
testcase_02 AC 74 ms
71,112 KB
testcase_03 AC 71 ms
71,144 KB
testcase_04 AC 70 ms
70,972 KB
testcase_05 AC 66 ms
71,092 KB
testcase_06 AC 69 ms
71,108 KB
testcase_07 AC 70 ms
71,348 KB
testcase_08 AC 67 ms
71,232 KB
testcase_09 AC 66 ms
71,172 KB
testcase_10 AC 67 ms
71,324 KB
testcase_11 AC 68 ms
71,268 KB
testcase_12 AC 69 ms
71,144 KB
testcase_13 AC 70 ms
71,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x,N=map(int,input().split());b=0;mod=1000003
for i in list(map(int,input().split())):
	b=(b+pow(x,i,mod))%mod
print(b)
0