結果

問題 No.1850 Rewrite Product
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-07-04 07:51:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 445 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 11,472 KB
実行使用メモリ 15,160 KB
最終ジャッジ日時 2023-09-25 05:24:02
合計ジャッジ時間 1,620 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,160 KB
testcase_01 AC 445 ms
15,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t=gets.to_i
t.times{
	x,y=gets.split(" ").map{|e| e.to_i}
	ans="Yes"
	if x==y then
		ans="Yes"
	elsif x==1 then
		ans="No"
	elsif x<=3 && y>=x then
		ans="No"
	elsif x==4 && y>x then
		ans="No"
	end
	puts ans
}
0