結果
| 問題 | No.642 Two Operations No.1 |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-05-30 00:12:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| + 115µs | |
| コード長 | 131 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,976 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-07-11 03:13:57 |
| 合計ジャッジ時間 | 2,539 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
N = int(input())
ans = 0
x = N
while x > 1:
if x % 2 == 0:
x //= 2
else:
x += 1
ans += 1
print(ans)
norioc