結果
| 問題 |
No.790 ちきんの括弧並べ
|
| ユーザー |
CELICA
|
| 提出日時 | 2020-09-06 09:32:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 322 bytes |
| コンパイル時間 | 1,432 ms |
| コンパイル使用メモリ | 165,492 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 06:40:36 |
| 合計ジャッジ時間 | 1,880 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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