結果

問題 No.523 LED
ユーザー hotpepsi
提出日時 2017-06-14 23:01:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 59,428 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 23:28:45
合計ジャッジ時間 1,674 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <sstream>
#include <algorithm>
#include <cstdio>
#include <cstring>

using namespace std;

int main(int argc, char *argv[]) {
	long long n, ans = 1;
	cin >> n;
	for (long long i = 2; i < n * 2; i += 2) {
		long long j = ((i + 1) * (i + 2)) / 2;
		ans = (ans * (j % 1000000007)) % 1000000007;
	}
	cout << ans << endl;
	return 0;
}
0