結果

問題 No.349 干支の置き物
ユーザー HimatsubushinHimatsubushin
提出日時 2016-03-14 11:46:29
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 881 bytes
コンパイル時間 2,044 ms
コンパイル使用メモリ 108,632 KB
実行使用メモリ 23,976 KB
最終ジャッジ日時 2023-10-26 04:14:32
合計ジャッジ時間 4,015 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
23,908 KB
testcase_01 AC 22 ms
23,968 KB
testcase_02 AC 22 ms
23,908 KB
testcase_03 AC 22 ms
23,968 KB
testcase_04 AC 22 ms
23,968 KB
testcase_05 AC 22 ms
23,968 KB
testcase_06 AC 21 ms
23,968 KB
testcase_07 AC 22 ms
23,968 KB
testcase_08 AC 21 ms
23,968 KB
testcase_09 AC 21 ms
23,968 KB
testcase_10 AC 22 ms
23,968 KB
testcase_11 AC 22 ms
23,968 KB
testcase_12 AC 22 ms
23,968 KB
testcase_13 AC 22 ms
23,968 KB
testcase_14 AC 22 ms
23,968 KB
testcase_15 AC 22 ms
23,968 KB
testcase_16 AC 22 ms
23,968 KB
testcase_17 AC 22 ms
23,968 KB
testcase_18 AC 22 ms
23,976 KB
testcase_19 WA -
testcase_20 AC 21 ms
23,908 KB
testcase_21 AC 22 ms
23,908 KB
testcase_22 AC 22 ms
23,976 KB
testcase_23 AC 22 ms
23,976 KB
testcase_24 AC 22 ms
23,908 KB
testcase_25 AC 21 ms
23,904 KB
testcase_26 WA -
testcase_27 AC 22 ms
23,968 KB
testcase_28 WA -
testcase_29 AC 22 ms
23,968 KB
testcase_30 AC 22 ms
23,904 KB
testcase_31 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No349
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] eto = { "ne", "ushi", "tora", "u", "tatsu", "mi", "uma", "hitsuji", "saru", "tori", "inu", "i" };
            int n = int.Parse(Console.ReadLine());
            string data;
            int[] count = new int[eto.Length];
            bool result = true;

            for (int i = 0; i < n; i++)
            {
                data = Console.ReadLine();
                for (int j = 0; j < eto.Length; j++)
                    if (data.Equals(eto[j]))
                        count[j]++;
            }

            for (int i = 0; i < eto.Length; i++)
                if (count[i] > n - 1)
                {
                    Console.WriteLine("NO");
                    return;
                }

            Console.WriteLine("YES");
        }
    }
}
0