結果

問題 No.85 TVザッピング(1)
ユーザー kano_townkano_town
提出日時 2014-12-07 18:17:28
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 3,099 ms
コンパイル使用メモリ 72,248 KB
実行使用メモリ 56,460 KB
最終ジャッジ日時 2023-09-02 09:14:54
合計ジャッジ時間 8,141 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,900 KB
testcase_01 AC 119 ms
55,584 KB
testcase_02 AC 124 ms
56,068 KB
testcase_03 AC 122 ms
56,048 KB
testcase_04 AC 123 ms
55,832 KB
testcase_05 AC 122 ms
56,240 KB
testcase_06 AC 120 ms
56,012 KB
testcase_07 AC 122 ms
56,012 KB
testcase_08 AC 120 ms
56,112 KB
testcase_09 WA -
testcase_10 AC 121 ms
56,352 KB
testcase_11 AC 120 ms
55,880 KB
testcase_12 AC 119 ms
56,216 KB
testcase_13 AC 118 ms
56,160 KB
testcase_14 WA -
testcase_15 AC 119 ms
54,000 KB
testcase_16 AC 121 ms
56,460 KB
testcase_17 AC 120 ms
56,220 KB
testcase_18 AC 119 ms
56,012 KB
testcase_19 AC 118 ms
55,804 KB
testcase_20 AC 119 ms
56,340 KB
testcase_21 AC 118 ms
56,004 KB
testcase_22 AC 117 ms
56,088 KB
testcase_23 AC 118 ms
56,012 KB
testcase_24 AC 120 ms
53,568 KB
testcase_25 AC 120 ms
56,112 KB
testcase_26 AC 122 ms
55,856 KB
testcase_27 AC 118 ms
55,824 KB
testcase_28 AC 121 ms
55,868 KB
testcase_29 AC 118 ms
56,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder85 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		sc.next();
		if ((n * m) % 2 == 0 && n > 1 && m > 1)
			System.out.println("YES");
		else
			System.out.println("NO");
	}
}
0