結果

問題 No.1465 Archaea
ユーザー rin204
提出日時 2022-01-27 21:27:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 709 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 51,840 KB
最終ジャッジ日時 2024-12-26 03:09:46
合計ジャッジ時間 2,812 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())

while n > 1:
    if n % 2 == 1:
        n -= 3
    else:
        n //= 2
    k -= 1
if k >= 0 and n == 1:
    print("YES")
else:
    print("NO")
0