結果
| 問題 |
No.523 LED
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-03 15:35:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 111 ms / 2,000 ms |
| コード長 | 222 bytes |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 64,592 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 04:31:40 |
| 合計ジャッジ時間 | 1,885 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <iostream>
int main() {
constexpr int MOD = 1e9 + 7;
int n;
std::cin >> n;
int ans = 1;
for (int i = 1; i <= n; i++) {
ans = 1LL * ans * i % MOD * (2 * i - 1) % MOD;
}
std::cout << ans << std::endl;
}