結果
問題 |
No.523 LED
|
ユーザー |
![]() |
提出日時 | 2017-06-03 00:49:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,084 KB |
最終ジャッジ日時 | 2024-09-22 03:52:31 |
合計ジャッジ時間 | 3,578 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 2 TLE * 1 -- * 22 |
ソースコード
N = int(input()) shift = N - bin(2 * N)[2:].count("1") #(2N)!の偶数項 mod = 1000000007 odds = 1 for i in range(3, 2 * N + 1, 2): odds = odds * i if odds > mod: odds -= mod ans = (odds << shift) % mod print(ans)