結果

問題 No.85 TVザッピング(1)
ユーザー YamaKasaYamaKasa
提出日時 2018-07-05 02:13:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 405 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 71,244 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2023-09-13 17:39:50
合計ジャッジ時間 7,324 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,688 KB
testcase_01 AC 123 ms
55,472 KB
testcase_02 AC 127 ms
55,832 KB
testcase_03 AC 126 ms
55,900 KB
testcase_04 AC 127 ms
55,632 KB
testcase_05 AC 126 ms
55,648 KB
testcase_06 AC 136 ms
55,464 KB
testcase_07 AC 124 ms
55,872 KB
testcase_08 AC 127 ms
55,860 KB
testcase_09 AC 126 ms
55,872 KB
testcase_10 AC 126 ms
55,816 KB
testcase_11 AC 121 ms
56,324 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 119 ms
55,640 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 120 ms
55,904 KB
testcase_18 WA -
testcase_19 AC 122 ms
55,608 KB
testcase_20 AC 121 ms
55,428 KB
testcase_21 AC 121 ms
55,764 KB
testcase_22 AC 121 ms
56,096 KB
testcase_23 AC 120 ms
55,700 KB
testcase_24 AC 122 ms
55,480 KB
testcase_25 AC 124 ms
55,980 KB
testcase_26 AC 125 ms
56,000 KB
testcase_27 AC 122 ms
55,672 KB
testcase_28 AC 122 ms
55,744 KB
testcase_29 AC 121 ms
56,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int M = scan.nextInt();
		int C = scan.nextInt();
		scan.close();
		if(N == 1 && M == 1 && C == 1) {
			System.out.println("YES");
		}else if(N % 2 == 1 && M % 2 == 1) {
			System.out.println("NO");
		}else {
			System.out.println("YES");
		}
	}
}
0