結果
問題 | No.523 LED |
ユーザー |
![]() |
提出日時 | 2018-03-21 06:37:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 107 ms / 2,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 2,394 ms |
コンパイル使用メモリ | 157,148 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 19:20:44 |
合計ジャッジ時間 | 2,845 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define M 1000000007 int main() { int n; cin >> n; ll ans = 1; for (int i = 1;i <= n;i++) { ans *= i; ans %= M; ans *= 2 * i - 1; ans %= M; } cout << ans << endl; return 0; }