結果

問題 No.85 TVザッピング(1)
ユーザー k_kadorak_kadora
提出日時 2015-06-19 22:06:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 449 bytes
コンパイル時間 3,536 ms
コンパイル使用メモリ 74,528 KB
実行使用メモリ 54,376 KB
最終ジャッジ日時 2024-04-15 05:16:55
合計ジャッジ時間 7,805 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
54,152 KB
testcase_01 AC 123 ms
54,160 KB
testcase_02 AC 125 ms
53,844 KB
testcase_03 AC 122 ms
54,044 KB
testcase_04 AC 129 ms
53,992 KB
testcase_05 AC 113 ms
53,072 KB
testcase_06 AC 129 ms
53,956 KB
testcase_07 AC 126 ms
53,856 KB
testcase_08 AC 125 ms
54,100 KB
testcase_09 AC 123 ms
54,376 KB
testcase_10 AC 126 ms
54,052 KB
testcase_11 AC 121 ms
54,352 KB
testcase_12 AC 127 ms
54,036 KB
testcase_13 AC 123 ms
54,000 KB
testcase_14 AC 124 ms
54,240 KB
testcase_15 AC 124 ms
53,832 KB
testcase_16 AC 127 ms
53,852 KB
testcase_17 AC 124 ms
54,024 KB
testcase_18 AC 126 ms
54,120 KB
testcase_19 AC 130 ms
53,980 KB
testcase_20 AC 127 ms
54,260 KB
testcase_21 AC 130 ms
53,972 KB
testcase_22 AC 127 ms
53,968 KB
testcase_23 AC 126 ms
53,976 KB
testcase_24 AC 125 ms
54,280 KB
testcase_25 AC 132 ms
54,120 KB
testcase_26 AC 127 ms
54,152 KB
testcase_27 AC 127 ms
53,976 KB
testcase_28 AC 125 ms
54,176 KB
testcase_29 AC 124 ms
54,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yuki85{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		int n,m,c,res;
		n = sc.nextInt();
		m = sc.nextInt();
		c = sc.nextInt();
		res = n*m;
		if(res % 2 == 0){
			if(res == 2){
				System.out.println("YES");
			}else{
				if(n!=1 && m != 1){
					System.out.println("YES");
				}else{
					System.out.println("NO");
				}
			}
		}else{
			System.out.println("NO");
		}
	}
}
0