結果

問題 No.85 TVザッピング(1)
ユーザー scachescache
提出日時 2014-12-04 23:36:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 465 bytes
コンパイル時間 3,118 ms
コンパイル使用メモリ 75,408 KB
実行使用メモリ 41,940 KB
最終ジャッジ日時 2024-04-15 05:07:33
合計ジャッジ時間 7,437 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,276 KB
testcase_01 AC 106 ms
41,436 KB
testcase_02 AC 108 ms
39,888 KB
testcase_03 AC 110 ms
41,012 KB
testcase_04 AC 119 ms
41,216 KB
testcase_05 AC 122 ms
41,236 KB
testcase_06 AC 117 ms
40,636 KB
testcase_07 AC 121 ms
41,312 KB
testcase_08 AC 120 ms
41,128 KB
testcase_09 AC 118 ms
41,392 KB
testcase_10 AC 108 ms
39,904 KB
testcase_11 AC 120 ms
41,524 KB
testcase_12 AC 108 ms
40,096 KB
testcase_13 AC 110 ms
40,124 KB
testcase_14 AC 119 ms
41,012 KB
testcase_15 AC 125 ms
41,484 KB
testcase_16 AC 121 ms
41,412 KB
testcase_17 AC 123 ms
41,340 KB
testcase_18 AC 111 ms
41,940 KB
testcase_19 AC 107 ms
40,096 KB
testcase_20 AC 123 ms
41,272 KB
testcase_21 AC 122 ms
41,220 KB
testcase_22 AC 120 ms
41,216 KB
testcase_23 AC 107 ms
40,112 KB
testcase_24 AC 113 ms
41,148 KB
testcase_25 AC 120 ms
41,132 KB
testcase_26 AC 110 ms
41,308 KB
testcase_27 AC 123 ms
41,208 KB
testcase_28 AC 107 ms
40,304 KB
testcase_29 AC 112 ms
41,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main85 {
	public static void main(String[] args) {
		Main85 p = new Main85();
	}

	public Main85() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int c = sc.nextInt();
		
		if((n==1 || m==1) && n*m>2)
			System.out.println("NO");
		else if((n*m)%2==0)
			System.out.println("YES");
		else
			System.out.println("NO");
	
	}

	public void solve() {
	}

}
0