結果

問題 No.683 Two Operations No.3
ユーザー cielciel
提出日時 2018-05-13 11:08:42
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 186 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,212 KB
実行使用メモリ 816,656 KB
最終ジャッジ日時 2023-09-10 18:42:49
合計ジャッジ時間 4,865 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
15,348 KB
testcase_01 AC 154 ms
15,320 KB
testcase_02 AC 154 ms
15,352 KB
testcase_03 AC 154 ms
15,284 KB
testcase_04 MLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

ENV[Z='RUBY_THREAD_VM_STACK_SIZE']||exec({Z=>?5*9},'ruby',$0)
def f(x,y)
	(x==0&&y==0)||(x%2==0?f(x/2,y-1):false)||(y%2==0?f(x-1,y/2):false)
end
puts f(*gets.split.map(&:to_i))?:Yes: :No
0