結果

問題 No.85 TVザッピング(1)
ユーザー mbanmban
提出日時 2017-01-01 21:58:11
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 830 bytes
コンパイル時間 2,044 ms
コンパイル使用メモリ 105,748 KB
実行使用メモリ 24,792 KB
最終ジャッジ日時 2023-08-22 09:26:51
合計ジャッジ時間 5,134 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,812 KB
testcase_01 AC 56 ms
20,808 KB
testcase_02 AC 56 ms
20,704 KB
testcase_03 AC 56 ms
20,664 KB
testcase_04 AC 55 ms
20,732 KB
testcase_05 AC 55 ms
20,708 KB
testcase_06 AC 56 ms
22,772 KB
testcase_07 AC 56 ms
22,912 KB
testcase_08 AC 56 ms
20,776 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 55 ms
20,700 KB
testcase_20 AC 55 ms
20,660 KB
testcase_21 AC 55 ms
20,804 KB
testcase_22 AC 55 ms
20,780 KB
testcase_23 AC 54 ms
20,708 KB
testcase_24 AC 55 ms
20,740 KB
testcase_25 AC 54 ms
22,720 KB
testcase_26 AC 55 ms
20,696 KB
testcase_27 AC 55 ms
22,832 KB
testcase_28 AC 54 ms
18,608 KB
testcase_29 AC 54 ms
20,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;


class Magatro
{
   
    static void Main()
    {
        int N, M;
        string[] S = Console.ReadLine().Split(' ');
        N = int.Parse(S[0]);
        M = int.Parse(S[1]);
        if (N == 1 || M == 1)
        {
            if (N == 2 || M == 2)
            {
                Console.WriteLine("NO");
                return;
            }
            else
            {
                Console.WriteLine("YES");
                return;
            }
        }
        if (N % 2 == 0 || M % 2 == 0)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}

0