結果
問題 | No.523 LED |
ユーザー |
![]() |
提出日時 | 2020-07-29 18:01:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 111 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 2,027 ms |
コンパイル使用メモリ | 192,988 KB |
最終ジャッジ日時 | 2025-01-12 07:37:50 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i = 0; i < (n);i++) #define sz(x) int(x.size()) typedef unsigned long long ll; typedef long double ld; typedef pair<int,int> P; constexpr int mod = 1e9+7; int main() { ll n; cin >> n; ll res = 1; for (ll i = 2 * n; i >= 1; i--) { res *= i; if (i % 2 == 0) res /= 2; res %= mod; } cout << res << endl; return 0; }