結果
| 問題 |
No.523 LED
|
| ユーザー |
square1001
|
| 提出日時 | 2017-06-02 22:25:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 391 bytes |
| コンパイル時間 | 727 ms |
| コンパイル使用メモリ | 83,256 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-21 22:25:48 |
| 合計ジャッジ時間 | 1,888 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <cmath>
#include <string>
#include <vector>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <functional>
#pragma warning(disable : 4996)
using namespace std;
const int mod = 1000000007;
int n;
int main() {
int ret = 1;
cin >> n;
for (int i = 1; i <= n; i++) {
ret = 1LL * ret * (2LL * i * (2 * i - 1) / 2 % mod) % mod;
}
cout << ret << endl;
return 0;
}
square1001