結果
| 問題 | No.727 仲介人moko |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-30 23:02:24 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 1,000 ms |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 715 ms |
| コンパイル使用メモリ | 72,940 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-16 06:55:08 |
| 合計ジャッジ時間 | 2,363 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
#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;
}