結果

問題 No.85 TVザッピング(1)
ユーザー mbanmban
提出日時 2017-01-01 22:00:37
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 781 bytes
コンパイル時間 3,835 ms
コンパイル使用メモリ 102,860 KB
実行使用メモリ 22,780 KB
最終ジャッジ日時 2023-07-27 18:37:43
合計ジャッジ時間 5,100 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,916 KB
testcase_01 AC 55 ms
20,848 KB
testcase_02 AC 56 ms
22,748 KB
testcase_03 AC 54 ms
18,748 KB
testcase_04 AC 56 ms
22,688 KB
testcase_05 AC 55 ms
20,912 KB
testcase_06 AC 55 ms
22,628 KB
testcase_07 AC 54 ms
20,848 KB
testcase_08 AC 56 ms
20,736 KB
testcase_09 AC 56 ms
20,728 KB
testcase_10 AC 55 ms
20,712 KB
testcase_11 AC 54 ms
20,660 KB
testcase_12 AC 55 ms
20,604 KB
testcase_13 AC 55 ms
20,660 KB
testcase_14 AC 55 ms
20,748 KB
testcase_15 AC 55 ms
18,748 KB
testcase_16 AC 57 ms
22,700 KB
testcase_17 AC 55 ms
22,764 KB
testcase_18 AC 56 ms
20,796 KB
testcase_19 AC 56 ms
20,708 KB
testcase_20 AC 55 ms
20,728 KB
testcase_21 AC 57 ms
20,720 KB
testcase_22 AC 55 ms
20,792 KB
testcase_23 AC 56 ms
22,780 KB
testcase_24 AC 54 ms
20,724 KB
testcase_25 AC 55 ms
18,824 KB
testcase_26 AC 56 ms
22,652 KB
testcase_27 AC 56 ms
20,852 KB
testcase_28 AC 54 ms
18,620 KB
testcase_29 AC 56 ms
20,568 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 == 2) || (M == 1 && N == 2))
        {
            Console.WriteLine("YES");
            return;
        }
        if (N == 1 || M == 1)
        {
            Console.WriteLine("NO");
            return;
        }
        if (N % 2 == 0 || M % 2 == 0)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}

0