結果

問題 No.85 TVザッピング(1)
ユーザー hhgfhn1hhgfhn1
提出日時 2018-12-19 01:20:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 378 bytes
コンパイル時間 2,053 ms
コンパイル使用メモリ 74,468 KB
実行使用メモリ 57,744 KB
最終ジャッジ日時 2023-10-25 23:48:13
合計ジャッジ時間 6,701 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
57,644 KB
testcase_01 AC 124 ms
57,608 KB
testcase_02 AC 121 ms
57,364 KB
testcase_03 AC 124 ms
57,540 KB
testcase_04 AC 124 ms
57,624 KB
testcase_05 AC 122 ms
57,556 KB
testcase_06 AC 122 ms
57,280 KB
testcase_07 AC 124 ms
57,744 KB
testcase_08 AC 121 ms
57,412 KB
testcase_09 AC 124 ms
57,260 KB
testcase_10 AC 124 ms
55,612 KB
testcase_11 AC 118 ms
57,584 KB
testcase_12 AC 123 ms
57,604 KB
testcase_13 AC 122 ms
57,452 KB
testcase_14 AC 123 ms
57,548 KB
testcase_15 AC 124 ms
57,552 KB
testcase_16 AC 124 ms
57,516 KB
testcase_17 AC 122 ms
57,556 KB
testcase_18 AC 122 ms
57,520 KB
testcase_19 AC 120 ms
57,528 KB
testcase_20 AC 121 ms
57,504 KB
testcase_21 AC 123 ms
57,520 KB
testcase_22 AC 122 ms
57,528 KB
testcase_23 AC 110 ms
56,344 KB
testcase_24 AC 115 ms
56,300 KB
testcase_25 AC 127 ms
57,616 KB
testcase_26 AC 113 ms
56,132 KB
testcase_27 AC 123 ms
57,512 KB
testcase_28 AC 128 ms
57,608 KB
testcase_29 AC 121 ms
57,312 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(n*m==2?"YES":"NO");
		}else {
			System.out.println((n%2==1&&m%2==1)?"NO":"YES");
		}
	}
}
0