結果

問題 No.85 TVザッピング(1)
ユーザー hhgfhn1hhgfhn1
提出日時 2018-12-19 01:17:53
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 1,967 ms
コンパイル使用メモリ 75,424 KB
実行使用メモリ 57,736 KB
最終ジャッジ日時 2023-10-25 23:48:01
合計ジャッジ時間 6,746 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
57,660 KB
testcase_01 AC 114 ms
55,508 KB
testcase_02 AC 123 ms
57,736 KB
testcase_03 AC 121 ms
57,536 KB
testcase_04 AC 120 ms
57,504 KB
testcase_05 AC 125 ms
57,664 KB
testcase_06 AC 123 ms
57,660 KB
testcase_07 AC 121 ms
57,528 KB
testcase_08 AC 124 ms
57,568 KB
testcase_09 WA -
testcase_10 AC 120 ms
57,464 KB
testcase_11 AC 120 ms
55,540 KB
testcase_12 AC 110 ms
56,336 KB
testcase_13 AC 120 ms
57,672 KB
testcase_14 WA -
testcase_15 AC 123 ms
57,668 KB
testcase_16 AC 123 ms
57,532 KB
testcase_17 AC 125 ms
57,524 KB
testcase_18 AC 127 ms
57,408 KB
testcase_19 AC 134 ms
57,520 KB
testcase_20 AC 137 ms
57,532 KB
testcase_21 AC 134 ms
57,524 KB
testcase_22 AC 133 ms
57,564 KB
testcase_23 AC 135 ms
57,528 KB
testcase_24 AC 129 ms
57,648 KB
testcase_25 AC 125 ms
57,488 KB
testcase_26 AC 125 ms
57,488 KB
testcase_27 AC 122 ms
57,516 KB
testcase_28 AC 126 ms
57,472 KB
testcase_29 AC 130 ms
57,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n=scanner.nextInt();
		int m=scanner.nextInt();
		int c=scanner.nextInt();
		if(n==1||m==1) {
			System.out.println("NO");
		}else {
			System.out.println((n%2==1&&m%2==1)?"NO":"YES");
		}
	}
}
0