結果

問題 No.727 仲介人moko
ユーザー square1001
提出日時 2018-04-30 23:02:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 18 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 63,232 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 00:00:07
合計ジャッジ時間 1,601 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
constexpr int mod = 1000000007;
int n;
int main() {
	cin >> n;
	int ret = 1;
	for (int i = 1; i <= n; i++) {
		ret = 1LL * ret * (2 * i - 1) % mod * i % mod * i % mod;
	}
	cout << ret << "\n";
	return 0;
}
0