結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー gemmarogemmaro
提出日時 2020-03-29 22:26:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 16,200 KB
最終ジャッジ日時 2023-08-30 20:01:25
合計ジャッジ時間 3,354 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
16,080 KB
testcase_01 AC 82 ms
16,132 KB
testcase_02 AC 88 ms
15,968 KB
testcase_03 AC 82 ms
16,120 KB
testcase_04 AC 82 ms
16,000 KB
testcase_05 AC 81 ms
16,128 KB
testcase_06 AC 81 ms
16,200 KB
testcase_07 AC 80 ms
16,032 KB
testcase_08 AC 80 ms
16,096 KB
testcase_09 AC 82 ms
16,064 KB
testcase_10 AC 82 ms
16,160 KB
testcase_11 AC 82 ms
16,188 KB
testcase_12 AC 82 ms
16,140 KB
testcase_13 AC 80 ms
16,156 KB
testcase_14 AC 81 ms
16,008 KB
testcase_15 AC 81 ms
16,144 KB
testcase_16 AC 81 ms
16,028 KB
testcase_17 AC 82 ms
15,928 KB
testcase_18 AC 85 ms
16,080 KB
testcase_19 AC 81 ms
16,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
m = gets.chomp.to_i

if m % 2 != 0
  puts "No"
else
  if n % 2 == 0
    puts "Yes"
  else
    puts (m >= 10) ? "Yes" : "No"
  end
end
0