結果
問題 |
No.642 Two Operations No.1
|
ユーザー |
|
提出日時 | 2018-02-02 21:50:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 28,580 KB |
最終ジャッジ日時 | 2024-12-31 07:26:48 |
合計ジャッジ時間 | 28,183 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 TLE * 9 |
ソースコード
import math def main(): N = int(input()) if N == 1: print(0) return n = math.log2(N) if not n % 1: print(int(n)) else: n = int(n + 1) x = 2 ** n while x > N: x -= 1 n += 1 print(n) main()