結果

問題 No.85 TVザッピング(1)
ユーザー mbanmban
提出日時 2017-01-01 21:51:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 649 bytes
コンパイル時間 2,471 ms
コンパイル使用メモリ 99,684 KB
実行使用メモリ 22,920 KB
最終ジャッジ日時 2023-08-22 09:23:53
合計ジャッジ時間 5,722 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
18,776 KB
testcase_01 AC 55 ms
22,820 KB
testcase_02 AC 55 ms
20,760 KB
testcase_03 AC 55 ms
20,796 KB
testcase_04 AC 55 ms
20,856 KB
testcase_05 AC 56 ms
20,864 KB
testcase_06 AC 56 ms
22,920 KB
testcase_07 AC 56 ms
20,776 KB
testcase_08 AC 56 ms
22,832 KB
testcase_09 WA -
testcase_10 AC 55 ms
20,716 KB
testcase_11 AC 54 ms
18,636 KB
testcase_12 AC 55 ms
20,792 KB
testcase_13 AC 55 ms
20,636 KB
testcase_14 WA -
testcase_15 AC 56 ms
18,680 KB
testcase_16 AC 56 ms
20,628 KB
testcase_17 AC 56 ms
20,856 KB
testcase_18 AC 55 ms
20,760 KB
testcase_19 AC 55 ms
18,604 KB
testcase_20 AC 56 ms
20,864 KB
testcase_21 AC 56 ms
22,772 KB
testcase_22 AC 56 ms
20,716 KB
testcase_23 AC 55 ms
20,720 KB
testcase_24 AC 55 ms
22,724 KB
testcase_25 AC 55 ms
22,736 KB
testcase_26 AC 55 ms
22,664 KB
testcase_27 AC 55 ms
22,740 KB
testcase_28 AC 56 ms
20,812 KB
testcase_29 AC 56 ms
22,852 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)
        {
            Console.WriteLine("NO");
            return;
        }
        if (N % 2 == 0 || M % 2 == 0)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}

0