結果
| 問題 |
No.523 LED
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-06-03 01:14:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 273 bytes |
| コンパイル時間 | 1,498 ms |
| コンパイル使用メモリ | 166,900 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 03:55:48 |
| 合計ジャッジ時間 | 2,589 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n,N) for(ll i=(n);i<N;i++)
#define p(s) cout<<(s)<<endl
typedef long long ll;
using namespace std;
const ll mod=1e9+7;
int main(){
ll N;
cin>>N;
ll ans=1;
REP(i,1,N){
ans*=(i+1)*(2*i+1)%mod;
ans%=mod;
}
p(ans);
return 0;
}
dnish