結果

問題 No.349 干支の置き物
ユーザー autotasautotas
提出日時 2016-06-17 12:17:58
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 978 ms
コンパイル使用メモリ 109,392 KB
実行使用メモリ 27,196 KB
最終ジャッジ日時 2024-04-17 23:07:21
合計ジャッジ時間 3,063 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
27,196 KB
testcase_01 AC 32 ms
25,032 KB
testcase_02 AC 33 ms
24,968 KB
testcase_03 AC 33 ms
22,964 KB
testcase_04 AC 33 ms
25,408 KB
testcase_05 AC 32 ms
25,028 KB
testcase_06 AC 33 ms
23,220 KB
testcase_07 AC 32 ms
25,388 KB
testcase_08 AC 32 ms
25,264 KB
testcase_09 AC 32 ms
25,084 KB
testcase_10 AC 33 ms
27,196 KB
testcase_11 AC 32 ms
23,100 KB
testcase_12 AC 33 ms
24,960 KB
testcase_13 AC 32 ms
25,032 KB
testcase_14 AC 33 ms
25,156 KB
testcase_15 AC 33 ms
24,964 KB
testcase_16 AC 32 ms
25,136 KB
testcase_17 AC 31 ms
25,028 KB
testcase_18 AC 32 ms
26,996 KB
testcase_19 AC 32 ms
25,260 KB
testcase_20 AC 32 ms
25,024 KB
testcase_21 AC 32 ms
27,136 KB
testcase_22 WA -
testcase_23 AC 32 ms
25,264 KB
testcase_24 WA -
testcase_25 AC 32 ms
25,092 KB
testcase_26 AC 32 ms
27,140 KB
testcase_27 AC 32 ms
25,280 KB
testcase_28 AC 31 ms
25,004 KB
testcase_29 WA -
testcase_30 AC 32 ms
24,968 KB
testcase_31 AC 32 ms
25,224 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.Linq;

class No349 {
    static void Main(string[] args) {
        int N = int.Parse(Console.ReadLine());
        var max = Enumerable.Repeat(0, N).Select(_ => Console.ReadLine()).GroupBy(s => s).Max(p => p.Count());
        if(max > N / 2) Console.WriteLine("NO");
        else Console.WriteLine("YES");
    }
}
0