結果

問題 No.523 LED
ユーザー SSRS
提出日時 2020-11-12 19:46:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 498 ms
コンパイル使用メモリ 63,636 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 19:45:12
合計ジャッジ時間 2,442 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
const long long MOD = 1000000007;
int main(){
	int N;
	cin >> N;
	long long ans = 1;
	for (int i = 1; i <= N * 2; i++){
		ans = ans * i % MOD;
	}
	for (int i = 0; i < N; i++){
		ans = ans * 500000004 % MOD;
	}
	cout << ans << endl;
}
0