結果
問題 |
No.523 LED
|
ユーザー |
![]() |
提出日時 | 2017-06-02 23:41:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 109 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 582 ms |
コンパイル使用メモリ | 55,708 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 03:34:00 |
合計ジャッジ時間 | 1,927 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include<iostream> using namespace std; #define repeat(i, n) for(int i=0; i<(n); i++) #define int long long signed main(){ int N; cin>> N; const int mod=1e9+7; int a=1, b=1; repeat(i, N) (a*=(i+1))%=mod; repeat(i, N) (b*=(2*(i+1)-1))%=mod; cout<< a*b%mod<< endl; return 0; }