結果

問題 No.85 TVザッピング(1)
ユーザー hhgfhn1hhgfhn1
提出日時 2018-12-19 01:16:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 2,278 ms
コンパイル使用メモリ 74,632 KB
実行使用メモリ 57,800 KB
最終ジャッジ日時 2023-10-25 23:47:51
合計ジャッジ時間 8,297 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
55,728 KB
testcase_01 AC 130 ms
57,440 KB
testcase_02 AC 131 ms
57,516 KB
testcase_03 AC 130 ms
57,476 KB
testcase_04 AC 126 ms
57,548 KB
testcase_05 AC 124 ms
57,572 KB
testcase_06 AC 123 ms
57,528 KB
testcase_07 AC 126 ms
57,528 KB
testcase_08 AC 124 ms
57,800 KB
testcase_09 AC 122 ms
57,500 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 123 ms
57,652 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 123 ms
55,536 KB
testcase_20 AC 122 ms
57,300 KB
testcase_21 AC 124 ms
57,628 KB
testcase_22 AC 124 ms
57,516 KB
testcase_23 AC 127 ms
57,500 KB
testcase_24 AC 130 ms
57,536 KB
testcase_25 AC 130 ms
57,760 KB
testcase_26 AC 133 ms
57,556 KB
testcase_27 AC 134 ms
57,660 KB
testcase_28 AC 135 ms
57,304 KB
testcase_29 AC 133 ms
57,548 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("YES");
		}else {
			System.out.println((n%2==1&&m%2==1)?"NO":"YES");
		}
	}
}
0