結果

問題 No.523 LED
ユーザー dnish
提出日時 2017-06-03 01:04:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 1,429 ms
コンパイル使用メモリ 166,552 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 03:54:45
合計ジャッジ時間 2,493 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define REP(i,n,N) for(int i=(n);i<(int)N;i++)
#define p(s) cout<<(s)<<endl
typedef long long ll;
using namespace std;

const int mod=1e9+7;
int main(){
	ll N;
	cin>>N;
	ll ans=1;
	REP(i,1,N+1){
		ans*=i*(2*i-1)%mod;
		ans%=mod;
	}
	p(ans);
	return 0;
}
0