結果
問題 | No.642 Two Operations No.1 |
ユーザー |
|
提出日時 | 2020-05-19 23:49:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 251 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-01 23:19:02 |
合計ジャッジ時間 | 1,312 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 9 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n = int(readline()) x = 1 if x == n: print(0) exit() for i in range(n): if x * 2 < n: x *= 2 else: print(i + 1 + x * 2 - n) break