結果
| 問題 |
No.16 累乗の加算
|
| コンテスト | |
| ユーザー |
StarMatyan
|
| 提出日時 | 2020-11-26 00:34:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-07-23 19:34:59 |
| 合計ジャッジ時間 | 1,376 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 RE * 11 |
ソースコード
import math
input_data = input()
input_s = input_data.split(" ")
base_d = int(input_s[0])
n_d = int(input_s[1])
second_d = input()
second_s = second_d.split(" ")
result = 0
temp_data=0
temp_result=0
for n_num in range(n_d):
temp_data = int(second_s[n_num])
temp_result = int(math.pow(base_d,temp_data))%1000003
result = result + temp_result
print(result)
StarMatyan