結果
| 問題 |
No.2272 多項式乗算 mod 258280327
|
| コンテスト | |
| ユーザー |
hotman78
|
| 提出日時 | 2023-01-17 09:22:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 372 bytes |
| コンパイル時間 | 3,318 ms |
| コンパイル使用メモリ | 223,408 KB |
| 最終ジャッジ日時 | 2025-02-10 04:02:26 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include<atcoder/convolution>
using ll=long long;
int main(){
ll n;
cin>>n;
vector<ll>a(n+1);
for(int i=0;i<n+1;++i)cin>>a[i];
ll m;
cin>>m;
vector<ll>b(m+1);
for(int i=0;i<m+1;++i)cin>>b[i];
auto c=atcoder::convolution_ll(a,b);
cout<<n+m<<endl;
for(int i=0;i<n+m+1;++i){
cout<<c[i]%258280327<<" \n"[i==n+m];
}
}
hotman78