結果
| 問題 | No.790 ちきんの括弧並べ |
| ユーザー |
CELICA
|
| 提出日時 | 2020-09-06 09:32:14 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 417µs | |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 866 ms |
| コンパイル使用メモリ | 180,100 KB |
| 実行使用メモリ | 9,868 KB |
| 最終ジャッジ日時 | 2026-10-01 21:20:19 |
| 合計ジャッジ時間 | 2,111 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ul = unsigned long;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
ll res{ 1 };
for (int i = n + 2; i <= n * 2; ++i)
res *= i;
for (int i = 2; i <= n; ++i)
res /= i;
cout << res << "\n";
return 0;
}
CELICA