結果

問題 No.523 LED
ユーザー teketeke5000
提出日時 2017-08-20 00:24:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 328 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 3,034 ms
コンパイル使用メモリ 158,412 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-14 15:56:40
合計ジャッジ時間 3,964 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ll MOD = 1e9 + 7;

int main(void) {
    ll N;
    cin >> N;
    ll ans = 1;
    for (int i = 1; i <= 2*N; i++) {
        ans *= i % 2 == 0 ? i/2 : i;
        ans %= MOD;
    }
    cout << ans << endl;
    return 0;
}
0