結果

問題 No.1465 Archaea
ユーザー convexineqconvexineq
提出日時 2021-04-03 12:34:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 767 ms
コンパイル使用メモリ 86,676 KB
実行使用メモリ 83,652 KB
最終ジャッジ日時 2023-08-26 02:35:18
合計ジャッジ時間 4,347 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 73 ms
71,308 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 RE -
testcase_09 WA -
testcase_10 AC 72 ms
71,380 KB
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 WA -
testcase_15 AC 71 ms
71,464 KB
testcase_16 AC 73 ms
71,328 KB
testcase_17 WA -
testcase_18 AC 72 ms
71,508 KB
testcase_19 AC 71 ms
71,380 KB
testcase_20 AC 70 ms
71,236 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(n,k):
    if k < 0: return 0
    if n%3==0 and 3*k >= n: return 1
    if n%2: return f(n-3,k-1)
    return f(n//2,k-1)

n,k = map(int,input().split())
print("YES" if f(n,k) else "NO")
0