結果

問題 No.182 新規性の虜
ユーザー 明智重蔵明智重蔵
提出日時 2015-09-12 11:15:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 550 bytes
コンパイル時間 2,954 ms
コンパイル使用メモリ 104,412 KB
実行使用メモリ 45,180 KB
最終ジャッジ日時 2023-08-27 07:31:52
合計ジャッジ時間 7,025 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
23,948 KB
testcase_01 AC 66 ms
23,900 KB
testcase_02 AC 65 ms
23,892 KB
testcase_03 AC 65 ms
21,916 KB
testcase_04 AC 64 ms
23,820 KB
testcase_05 AC 65 ms
21,836 KB
testcase_06 AC 64 ms
21,868 KB
testcase_07 AC 65 ms
21,852 KB
testcase_08 AC 108 ms
36,476 KB
testcase_09 AC 149 ms
43,868 KB
testcase_10 AC 145 ms
41,284 KB
testcase_11 AC 117 ms
34,828 KB
testcase_12 AC 87 ms
28,056 KB
testcase_13 AC 66 ms
23,828 KB
testcase_14 AC 66 ms
21,856 KB
testcase_15 AC 64 ms
21,880 KB
testcase_16 AC 65 ms
19,832 KB
testcase_17 AC 66 ms
21,936 KB
testcase_18 AC 112 ms
34,868 KB
testcase_19 AC 95 ms
26,196 KB
testcase_20 AC 87 ms
25,160 KB
testcase_21 AC 114 ms
35,372 KB
testcase_22 AC 92 ms
26,140 KB
testcase_23 AC 65 ms
21,816 KB
testcase_24 AC 137 ms
45,180 KB
testcase_25 AC 98 ms
27,676 KB
testcase_26 AC 79 ms
25,040 KB
testcase_27 AC 65 ms
21,936 KB
evil01.txt AC 170 ms
45,800 KB
evil02.txt AC 167 ms
52,296 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.Generic;
using System.Linq;

class Program
{
    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();
        string wkStr;
        while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        return WillReturn;
    }

    static void Main()
    {
        List<string> InputList = GetInputList();
        int[] AArr = InputList[1].Split(' ').Select(X => int.Parse(X)).ToArray();
        Console.WriteLine(AArr.GroupBy(X => X).Count(X => X.Count() == 1));
    }
}
0