結果
| 問題 | 
                            No.2272 多項式乗算 mod 258280327
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hotman78
                         | 
                    
| 提出日時 | 2023-01-17 09:27:01 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 433 bytes | 
| コンパイル時間 | 2,768 ms | 
| コンパイル使用メモリ | 223,524 KB | 
| 最終ジャッジ日時 | 2025-02-10 04:02:39 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 29 WA * 4 | 
ソースコード
#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);
	while((int)c.size()>=2&&c.back()==0)c.pop_back();
	cout<<c.size()-1<<endl;
	for(int i=0;i<c.size();++i){
		cout<<c[i]%258280327<<" \n"[i==n+m];
	}
}
            
            
            
        
            
hotman78