結果

問題 No.1465 Archaea
ユーザー y61mpnly61mpnl
提出日時 2021-04-02 21:43:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 219 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 9,420 KB
最終ジャッジ日時 2023-08-25 11:53:07
合計ジャッジ時間 3,685 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
9,296 KB
testcase_01 AC 94 ms
9,296 KB
testcase_02 AC 96 ms
9,360 KB
testcase_03 AC 95 ms
9,284 KB
testcase_04 AC 94 ms
9,408 KB
testcase_05 AC 95 ms
9,408 KB
testcase_06 AC 94 ms
9,364 KB
testcase_07 AC 95 ms
9,352 KB
testcase_08 AC 93 ms
9,276 KB
testcase_09 AC 94 ms
9,292 KB
testcase_10 AC 94 ms
9,352 KB
testcase_11 AC 93 ms
9,272 KB
testcase_12 AC 97 ms
9,404 KB
testcase_13 RE -
testcase_14 AC 94 ms
9,284 KB
testcase_15 AC 93 ms
9,360 KB
testcase_16 AC 94 ms
9,364 KB
testcase_17 RE -
testcase_18 AC 96 ms
9,284 KB
testcase_19 AC 94 ms
9,284 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 94 ms
9,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

dp = [1e9] * 100010
dp[1] = 0
for i in range(100010):
	if i+3<100010:
		dp[i+3] = min(dp[i+3], dp[i] + 1)
	if i*3<100010:
		dp[i*2] = min(dp[i*2], dp[i] + 1)
print("YNEOS"[dp[n]>k::2])
0