結果

問題 No.1089 三変数方程式
ユーザー pyranine
提出日時 2020-12-21 19:17:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 1,808 ms
コンパイル使用メモリ 165,444 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-21 13:03:59
合計ジャッジ時間 2,413 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int64_t fac(const int64_t &n) {
  if (n <= 1) return 1;
  return fac(n - 1);
}

int main() {
  int64_t n;
  cin >> n;
  cout << fac(n + 2) / (2LL * fac(n)) << endl;
  return 0;
}
0