結果

問題 No.396 クラス替え
ユーザー tsuchinagatsuchinaga
提出日時 2019-03-14 14:27:59
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 12,042 ms
コンパイル使用メモリ 208,748 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-08 17:21:08
合計ジャッジ時間 13,210 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,380 KB
testcase_09 WA -
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 WA -
testcase_19 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var n, m, x, y int
	_, _ = fmt.Scan(&n, &m, &x, &y)

	if x%(2*m) == y%(2*m) || x%(2*m)+y%(2*m) == (2*m+1) {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}
0