結果

問題 No.16 累乗の加算
ユーザー nohakai3nohakai3
提出日時 2022-10-17 20:01:48
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 118 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 86,764 KB
実行使用メモリ 261,268 KB
最終ジャッジ日時 2023-09-10 18:39:03
合計ジャッジ時間 7,202 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
75,516 KB
testcase_01 AC 73 ms
71,252 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
A=list(map(int,input().split()))
ans=0
for x in A:
    ans+=(pow(a,x))%1000003
print(ans)
0