結果
| 問題 | No.642 Two Operations No.1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-04 14:38:13 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-07 13:56:10 |
| 合計ジャッジ時間 | 1,132 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 9 |
ソースコード
n = int(input())
if n == 1:
print(0)
else:
c = 0
if n % 2 != 0:
n += 1
c = 1
while n != 1:
n //= 2
c += 1
print(c)