結果

問題 No.727 仲介人moko
ユーザー ats5515
提出日時 2018-08-24 21:51:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 553 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 80,096 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 07:10:00
合計ジャッジ時間 1,973 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
int MOD = 1000000007;
signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int N;
	cin >> N;
	int res = 1;
	int res2 = 1;
	for (int i = 1; i <= 2 * N - 1; i += 2) {
		res = (res*i) % MOD;
	}
	for (int i = 1; i <= N; i++) {
		res2 = (res2*i) % MOD;
	}
	res = (res*res2) % MOD;
	res = (res*res2) % MOD;
	cout << res << endl;
}
0