結果

問題 No.892 タピオカ
ユーザー mossari_aozoramossari_aozora
提出日時 2019-10-01 13:26:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 912 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 112,180 KB
実行使用メモリ 27,096 KB
最終ジャッジ日時 2024-04-14 08:32:41
合計ジャッジ時間 1,899 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
25,032 KB
testcase_01 AC 28 ms
26,820 KB
testcase_02 AC 28 ms
25,164 KB
testcase_03 AC 28 ms
27,080 KB
testcase_04 AC 28 ms
25,136 KB
testcase_05 AC 28 ms
25,036 KB
testcase_06 AC 29 ms
24,804 KB
testcase_07 AC 28 ms
27,096 KB
testcase_08 AC 28 ms
24,756 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.Numerics;
using System.Collections.Generic;
using System.Linq;
namespace Tapi
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Console.ReadLine().Split(' ');
            long a1 = long.Parse(input[0]);
            long b1 = long.Parse(input[1]);
            long a2 = long.Parse(input[2]);
            long b2 = long.Parse(input[3]);
            long a3 = long.Parse(input[4]);
            long b3 = long.Parse(input[5]);
            List<bool> IsEvn = new List<bool>()
            {
                a1 % 2 == 0, a2 % 2 == 0, a3 % 2 == 0
            };
            var oddCnt = IsEvn.Where(x => x == false).Count();
            if (oddCnt == 1 || oddCnt == 3)
            {
                Console.WriteLine(":-(");
            }
            else
            {
                Console.WriteLine(":-)");
            }
        }
    }
}
0