結果
問題 |
No.523 LED
|
ユーザー |
![]() |
提出日時 | 2018-03-01 21:59:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 339 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 623 ms |
コンパイル使用メモリ | 64,000 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 00:36:01 |
合計ジャッジ時間 | 3,303 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include<iostream> using namespace std; int mod = 1e9 + 7; long long int factorial_power(int n) { long long int ans = 1; for (int i = 2; i <= 2*n; i++) { ans *= i; if (i % 2 == 0) ans /= 2; ans %= mod; } return ans; } int main() { int n; cin >> n; cout << factorial_power(n) << endl; }