結果
問題 | No.287 場合の数 |
ユーザー |
![]() |
提出日時 | 2024-08-24 00:19:44 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 1,090 bytes |
コンパイル時間 | 5,308 ms |
コンパイル使用メモリ | 309,560 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-24 00:19:51 |
合計ジャッジ時間 | 6,543 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 < (int)(n); i++)#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)#define all(v) v.begin(), v.end()#define ll long long#define pii pair<int, int>#define pll pair<ll, ll>#define vi vector<int>#define vl vector<ll>#define vvi vector<vi>#define vvl vector<vl>#define vvvi vector<vvi>#define vvvl vector<vvl>template <class T>auto debug(const T &vec){if constexpr (!std::is_arithmetic_v<typename T::value_type>){for (const auto &v : vec)debug<typename T::value_type>(v);cout << endl;}else{for (const auto &e : vec){cout << e << " ";}cout << endl;}}void print(){cout << '\n';}template <class T, class... Ts>void print(const T &a, const Ts &...b){cout << a;(cout << ... << (cout << ' ', b));cout << '\n';}int main() {int n;cin >> n;vl f(n+1,1),g(n+1,1);for (int i=0;i<7;i++){g=convolution_ll(g,f);}cout << g[6*n] << endl;}