結果
問題 |
No.1465 Archaea
|
ユーザー |
|
提出日時 | 2022-05-21 18:45:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 177 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-09-20 12:03:24 |
合計ジャッジ時間 | 2,396 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 WA * 1 |
ソースコード
N,K = map(int,input().split()) 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')