結果

問題 No.85 TVザッピング(1)
ユーザー kou6839kou6839
提出日時 2014-12-09 15:04:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 507 bytes
コンパイル時間 2,631 ms
コンパイル使用メモリ 71,940 KB
実行使用メモリ 57,632 KB
最終ジャッジ日時 2023-09-02 12:09:55
合計ジャッジ時間 8,707 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
55,524 KB
testcase_01 AC 128 ms
55,668 KB
testcase_02 AC 130 ms
55,512 KB
testcase_03 AC 129 ms
55,716 KB
testcase_04 AC 129 ms
55,516 KB
testcase_05 AC 127 ms
55,776 KB
testcase_06 AC 126 ms
55,636 KB
testcase_07 AC 130 ms
55,512 KB
testcase_08 AC 130 ms
55,700 KB
testcase_09 AC 129 ms
55,988 KB
testcase_10 AC 130 ms
55,820 KB
testcase_11 AC 130 ms
55,492 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 124 ms
55,628 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 128 ms
55,796 KB
testcase_18 WA -
testcase_19 AC 127 ms
55,636 KB
testcase_20 AC 127 ms
55,900 KB
testcase_21 AC 127 ms
55,724 KB
testcase_22 AC 126 ms
55,760 KB
testcase_23 AC 128 ms
55,920 KB
testcase_24 AC 129 ms
56,056 KB
testcase_25 AC 129 ms
55,828 KB
testcase_26 AC 149 ms
55,912 KB
testcase_27 AC 128 ms
57,408 KB
testcase_28 AC 127 ms
55,756 KB
testcase_29 AC 126 ms
55,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int k = sc.nextInt();
        if( (n==1&&m==2) || (m==1&&n==2) ) {
        	System.out.println("YES");
        	return;
        }
        if( n%2==0 || m%2==0){
        	System.out.println("YES");
        	return;
        }
        System.out.println("NO");
    }
}			
0