結果
問題 | No.287 場合の数 |
ユーザー |
|
提出日時 | 2023-07-06 15:55:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 5,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 4,158 ms |
コンパイル使用メモリ | 229,400 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 11:11:36 |
合計ジャッジ時間 | 5,328 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include<bits/stdc++.h>using namespace std;#include<atcoder/all>using namespace atcoder;#define rep(i,n) for (int i = 0; i < (n); ++i)using ll = long long;int main() {int N;cin >> N;vector<ll> g(6*N+1), f(6*N+1);rep(i,N+1) g[i] = 1;f[0] = 1;rep(k,8) {f = convolution_ll(f,g);f.resize(6*N+1);}cout << f[6*N] << endl;}