結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー YamaKasaYamaKasa
提出日時 2019-03-15 22:24:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 11,172 KB
実行使用メモリ 16,236 KB
最終ジャッジ日時 2023-09-14 13:45:42
合計ジャッジ時間 2,927 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
16,040 KB
testcase_01 AC 85 ms
16,064 KB
testcase_02 AC 86 ms
16,004 KB
testcase_03 AC 85 ms
16,236 KB
testcase_04 AC 85 ms
15,924 KB
testcase_05 AC 84 ms
15,920 KB
testcase_06 AC 84 ms
16,072 KB
testcase_07 AC 85 ms
16,172 KB
testcase_08 AC 84 ms
16,228 KB
testcase_09 AC 84 ms
15,952 KB
testcase_10 AC 85 ms
15,984 KB
testcase_11 AC 86 ms
16,000 KB
testcase_12 AC 85 ms
16,068 KB
testcase_13 AC 85 ms
16,084 KB
testcase_14 AC 85 ms
15,888 KB
testcase_15 AC 85 ms
16,124 KB
testcase_16 AC 85 ms
16,044 KB
testcase_17 AC 84 ms
16,016 KB
testcase_18 AC 85 ms
16,048 KB
testcase_19 AC 84 ms
16,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.chop.to_i
M = gets.chop.to_i

if N % 2 == 0 && M % 2 == 0
  puts "Yes"
else
  if N % 2 == 0 && M % 2 == 1
    puts "No"
  else
    if (M / 10) % 2 == 1
      puts "Yes"
    else
      puts "No"
    end
  end
end
0