結果
| 問題 |
No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-29 23:12:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 69,644 KB |
| 最終ジャッジ日時 | 2024-11-06 07:42:33 |
| 合計ジャッジ時間 | 14,696 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 TLE * 1 -- * 18 |
ソースコード
import numpy as np
N, Q = map(int, input().split())
A = -np.array(list(map(int, input().split())), dtype=np.int64) + 1
MOD = 998244353
B = tuple(map(int, input().split()))
X = np.poly(A)
for b in B:
print(X[N - b])