結果
| 問題 |
No.523 LED
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-22 23:45:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 108 ms / 2,000 ms |
| コード長 | 346 bytes |
| コンパイル時間 | 625 ms |
| コンパイル使用メモリ | 58,040 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-17 23:51:05 |
| 合計ジャッジ時間 | 2,123 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
typedef long long int ll;
const ll MOD = 1000000007;
ll n,ans=1;
int main() {
cin >> n;
for (int i = 2 * n,ct=0; i >= 1; i--) {
int i2 = i;
for (; ct < n && ((i2 & 1) == 0); ct++, i2 = (i2 >> 1));
ans *= i2; ans %= MOD;
}
cout << ans << endl;
return 0;
}