結果

問題 No.85 TVザッピング(1)
ユーザー ぴろずぴろず
提出日時 2014-12-04 23:48:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 456 bytes
コンパイル時間 2,215 ms
コンパイル使用メモリ 71,984 KB
実行使用メモリ 56,120 KB
最終ジャッジ日時 2023-09-02 08:35:34
合計ジャッジ時間 7,440 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,492 KB
testcase_01 AC 128 ms
55,676 KB
testcase_02 AC 127 ms
55,428 KB
testcase_03 AC 128 ms
55,832 KB
testcase_04 AC 122 ms
55,680 KB
testcase_05 AC 127 ms
55,672 KB
testcase_06 AC 128 ms
55,944 KB
testcase_07 AC 129 ms
56,044 KB
testcase_08 AC 128 ms
55,744 KB
testcase_09 WA -
testcase_10 AC 127 ms
55,484 KB
testcase_11 AC 127 ms
55,764 KB
testcase_12 AC 128 ms
55,428 KB
testcase_13 AC 128 ms
55,672 KB
testcase_14 WA -
testcase_15 AC 128 ms
55,484 KB
testcase_16 AC 127 ms
55,880 KB
testcase_17 AC 127 ms
56,040 KB
testcase_18 AC 127 ms
55,520 KB
testcase_19 AC 130 ms
55,840 KB
testcase_20 AC 129 ms
56,112 KB
testcase_21 AC 128 ms
56,000 KB
testcase_22 AC 126 ms
55,480 KB
testcase_23 AC 127 ms
55,756 KB
testcase_24 AC 127 ms
56,120 KB
testcase_25 AC 127 ms
55,672 KB
testcase_26 AC 127 ms
55,872 KB
testcase_27 AC 127 ms
55,752 KB
testcase_28 AC 127 ms
55,676 KB
testcase_29 AC 128 ms
55,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no085;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int c = sc.nextInt();
		System.out.println(solve(n,m,c) ? "YES" : "NO");
	}

	public static boolean solve(int n,int m,int c) {
		if ((n*m)%2==1) {
			return false;
		}
		if (n == 1 || m == 1) {
			return false;
		}
		return true;
	}

}
0