結果

問題 No.1465 Archaea
ユーザー kept1994kept1994
提出日時 2021-09-02 01:57:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 401 bytes
コンパイル時間 950 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 71,480 KB
最終ジャッジ日時 2023-08-19 09:12:29
合計ジャッジ時間 4,670 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,204 KB
testcase_01 AC 61 ms
70,968 KB
testcase_02 AC 62 ms
71,200 KB
testcase_03 AC 63 ms
71,296 KB
testcase_04 AC 63 ms
71,372 KB
testcase_05 AC 61 ms
71,100 KB
testcase_06 AC 61 ms
71,188 KB
testcase_07 AC 61 ms
71,120 KB
testcase_08 AC 61 ms
71,220 KB
testcase_09 AC 63 ms
71,000 KB
testcase_10 AC 61 ms
71,240 KB
testcase_11 AC 62 ms
71,296 KB
testcase_12 AC 63 ms
71,208 KB
testcase_13 AC 62 ms
71,480 KB
testcase_14 AC 61 ms
71,196 KB
testcase_15 AC 60 ms
71,404 KB
testcase_16 AC 63 ms
71,184 KB
testcase_17 AC 69 ms
71,380 KB
testcase_18 AC 66 ms
71,228 KB
testcase_19 AC 62 ms
71,000 KB
testcase_20 AC 61 ms
71,332 KB
testcase_21 AC 63 ms
71,144 KB
testcase_22 AC 65 ms
71,152 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    N, K = map(int, input().split())
    cnt = 0
    while N > 1:
        if N % 2 == 1:
            if N <= 3:
                print("NO")
                return
            N -= 3
            cnt += 1
        else:
            N //= 2
            cnt += 1
    print("YES" if cnt <= K else "NO")
    return
        
if __name__ == '__main__':
    main()
0