結果
問題 |
No.523 LED
|
ユーザー |
|
提出日時 | 2017-09-21 02:13:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 330 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 720 ms |
コンパイル使用メモリ | 64,844 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 09:24:35 |
合計ジャッジ時間 | 3,490 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; long M=1e9+7; long pow(long a,int b){return b?pow(a*a%M,b/2)*(b%2?a:1)%M:1;} main() { long n,m,ans=1;cin>>n; for(m=n*2;m>0;m--)ans=ans*m%M; cout<<ans*pow(pow(2,n),M-2)%M<<endl; }