結果

問題 No.287 場合の数
ユーザー hiro71687k
提出日時 2023-02-03 04:45:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 614 bytes
コンパイル時間 3,520 ms
コンパイル使用メモリ 250,088 KB
最終ジャッジ日時 2025-02-10 08:26:18
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll=long long;
using ld=long double;
ld pie=3.14159265359;
ll mod=1000000007;
ll inf=1000000000000000001;
int main(){
    ll n;
    cin >> n;
    vector<ll>a(n*6+2,0);
    for (ll i = 0; i <=n; i++)
    {
        a[i]=1;
    }
    vector<ll>b=convolution_ll(a,a);
    vector<ll>c=convolution_ll(b,a);
    vector<ll>d=convolution_ll(c,a);
    vector<ll>e=convolution_ll(d,a);
    vector<ll>f=convolution_ll(e,a);
    vector<ll>g=convolution_ll(f,a);
    vector<ll>h=convolution_ll(g,a);
    cout << h[6*n] << endl;
}
0