結果

問題 No.85 TVザッピング(1)
ユーザー syokeininsyokeinin
提出日時 2014-12-05 00:05:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 422 bytes
コンパイル時間 4,372 ms
コンパイル使用メモリ 72,612 KB
実行使用メモリ 58,112 KB
最終ジャッジ日時 2023-09-02 08:42:36
合計ジャッジ時間 9,518 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,232 KB
testcase_01 AC 123 ms
55,740 KB
testcase_02 AC 124 ms
55,620 KB
testcase_03 AC 126 ms
55,752 KB
testcase_04 AC 125 ms
55,980 KB
testcase_05 AC 125 ms
55,744 KB
testcase_06 AC 125 ms
55,532 KB
testcase_07 AC 125 ms
55,804 KB
testcase_08 AC 123 ms
56,432 KB
testcase_09 WA -
testcase_10 AC 125 ms
55,736 KB
testcase_11 AC 124 ms
55,792 KB
testcase_12 AC 127 ms
56,100 KB
testcase_13 AC 125 ms
55,736 KB
testcase_14 WA -
testcase_15 AC 123 ms
55,828 KB
testcase_16 AC 124 ms
55,832 KB
testcase_17 AC 125 ms
55,736 KB
testcase_18 AC 125 ms
54,364 KB
testcase_19 AC 125 ms
55,680 KB
testcase_20 AC 127 ms
56,088 KB
testcase_21 AC 126 ms
56,324 KB
testcase_22 AC 125 ms
56,064 KB
testcase_23 AC 126 ms
55,740 KB
testcase_24 AC 129 ms
55,512 KB
testcase_25 AC 127 ms
56,008 KB
testcase_26 AC 127 ms
55,888 KB
testcase_27 AC 126 ms
55,848 KB
testcase_28 AC 125 ms
55,776 KB
testcase_29 AC 127 ms
55,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class QQ5 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int c = sc.nextInt();
		if(m == 1 && n == 1){
			System.out.println("NO");
		}
		if(n == 1 || m == 1 || (n % 2 != 0) && (m % 2 != 0)){
			System.out.println("NO");
		}else{
			System.out.println("YES");
		}
		sc.close();
	}
}
0