結果

問題 No.396 クラス替え
ユーザー hogeover30hogeover30
提出日時 2016-09-21 02:35:25
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-28 16:40:42
合計ジャッジ時間 2,650 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 92 ms
12,288 KB
testcase_02 AC 89 ms
12,288 KB
testcase_03 AC 93 ms
12,032 KB
testcase_04 AC 90 ms
12,160 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 89 ms
12,160 KB
testcase_09 WA -
testcase_10 AC 85 ms
12,160 KB
testcase_11 AC 88 ms
12,160 KB
testcase_12 WA -
testcase_13 AC 85 ms
12,160 KB
testcase_14 AC 86 ms
12,288 KB
testcase_15 AC 85 ms
12,160 KB
testcase_16 WA -
testcase_17 AC 88 ms
12,160 KB
testcase_18 WA -
testcase_19 AC 90 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n, m=gets.split.map &:to_i
x, y=gets.split.map &:to_i
m*=2
puts ~-x%m==~-y%m ? "YES" : "NO"
0