結果
| 問題 | No.1465 Archaea | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-05-21 18:46:56 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 43 ms / 2,000 ms | 
| コード長 | 242 bytes | 
| コンパイル時間 | 295 ms | 
| コンパイル使用メモリ | 81,920 KB | 
| 実行使用メモリ | 52,016 KB | 
| 最終ジャッジ日時 | 2024-09-20 12:03:37 | 
| 合計ジャッジ時間 | 2,028 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 20 | 
ソースコード
N,K = map(int,input().split())
if N == 4:
    print('YES')
    exit()
if N % 3 == 0:
    print('NO')
    exit()
cnt = 0
while N != 1:
    if N % 2 == 0:
        N //= 2
    else:
        N -= 3
    cnt += 1
print('YES' if cnt <= K else 'NO')
            
            
            
        