結果

問題 No.1714 Tag on Grid
ユーザー ks2mks2m
提出日時 2021-10-22 21:24:53
言語 Java19
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 453 bytes
コンパイル時間 2,159 ms
コンパイル使用メモリ 74,668 KB
実行使用メモリ 57,636 KB
最終ジャッジ日時 2023-10-24 12:15:11
合計ジャッジ時間 7,097 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,332 KB
testcase_01 AC 129 ms
57,440 KB
testcase_02 AC 130 ms
57,344 KB
testcase_03 AC 131 ms
57,340 KB
testcase_04 AC 130 ms
57,368 KB
testcase_05 AC 133 ms
57,272 KB
testcase_06 AC 132 ms
57,196 KB
testcase_07 AC 132 ms
57,356 KB
testcase_08 AC 127 ms
57,264 KB
testcase_09 AC 126 ms
55,364 KB
testcase_10 AC 129 ms
57,220 KB
testcase_11 AC 128 ms
57,368 KB
testcase_12 AC 128 ms
57,464 KB
testcase_13 AC 129 ms
57,532 KB
testcase_14 AC 127 ms
57,328 KB
testcase_15 AC 116 ms
56,116 KB
testcase_16 AC 138 ms
57,184 KB
testcase_17 AC 131 ms
57,352 KB
testcase_18 AC 131 ms
57,240 KB
testcase_19 AC 128 ms
57,272 KB
testcase_20 AC 126 ms
57,492 KB
testcase_21 AC 133 ms
57,636 KB
testcase_22 AC 128 ms
57,500 KB
testcase_23 AC 130 ms
57,456 KB
testcase_24 AC 128 ms
57,564 KB
testcase_25 AC 130 ms
57,468 KB
testcase_26 AC 130 ms
57,336 KB
testcase_27 AC 130 ms
57,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int w = sc.nextInt();
		int ni = sc.nextInt();
		int nj = sc.nextInt();
		int zi = sc.nextInt();
		int zj = sc.nextInt();
		sc.close();

		int n = (ni + nj) % 2;
		int z = (zi + zj) % 2;
		if (n == z) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
}
0