結果
| 問題 |
No.2272 多項式乗算 mod 258280327
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-14 22:21:20 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 513 bytes |
| コンパイル時間 | 6,160 ms |
| コンパイル使用メモリ | 315,172 KB |
| 実行使用メモリ | 6,784 KB |
| 最終ジャッジ日時 | 2024-10-10 13:14:36 |
| 合計ジャッジ時間 | 11,943 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 RE * 26 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
int main(){
int N;
cin >> N;
vector<long long> A(N + 1);
for(int i=0; i<N + 1; i++){
cin>>A[i];
}
int M;
cin >> M;
vector<long long> B(M + 1);
for(int i=0; i<M + 1; i++){
cin>>B[i];
}
vector<long long> C = convolution<258280327>(A,B);
cout << C.size() - 1 << endl;
for(int i=0; i<C.size(); i++){
cout << C[i] << " ";
}
cout << endl;
}