結果

問題 No.2272 多項式乗算 mod 258280327
ユーザー tsugutsugu
提出日時 2023-04-14 22:29:06
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 598 bytes
コンパイル時間 5,541 ms
コンパイル使用メモリ 316,264 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-10 13:24:09
合計ジャッジ時間 10,453 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 RE * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    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];
    }
    auto c = convolution<(long long) 258280327>(a, b);
    cout << n + m << '\n';
    for (int i = 0; i < (int) c.size(); i++) {
        cout << c[i] << " \n"[i + 1 == (int) c.size()];
    }
}
0