結果

問題 No.683 Two Operations No.3
ユーザー cielciel
提出日時 2018-05-13 11:07:44
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 186 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 11,488 KB
実行使用メモリ 170,084 KB
最終ジャッジ日時 2023-09-10 18:42:34
合計ジャッジ時間 8,235 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 167 ms
15,392 KB
testcase_01 AC 168 ms
15,292 KB
testcase_02 AC 166 ms
15,420 KB
testcase_03 AC 161 ms
15,300 KB
testcase_04 RE -
testcase_05 AC 163 ms
15,292 KB
testcase_06 RE -
testcase_07 AC 160 ms
15,268 KB
testcase_08 RE -
testcase_09 AC 161 ms
15,260 KB
testcase_10 AC 160 ms
15,296 KB
testcase_11 AC 163 ms
15,380 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 161 ms
15,296 KB
testcase_15 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

ENV[Z='RUBY_THREAD_VM_STACK_SIZE']||exec({Z=>?5*8},'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