結果
問題 | No.287 場合の数 |
ユーザー |
![]() |
提出日時 | 2022-11-08 22:26:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 3,999 ms |
コンパイル使用メモリ | 252,556 KB |
最終ジャッジ日時 | 2025-02-08 19:15:21 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using namespace std; using ll=long long; using ld=long double; ll inf=999999999999999999; ll mod=1000000007 ; int main(){ ll n; cin >> n; vector<ll>a(n+1,1); vector<ll>ans(n+1,1); for (ll i = 0; i < 7; i++) { vector<ll>b=convolution_ll(ans,a); ans=b; } cout << ans[6*n] << endl; }