結果

問題 No.182 新規性の虜
ユーザー 明智重蔵
提出日時 2015-09-12 11:15:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 550 bytes
コンパイル時間 1,244 ms
コンパイル使用メモリ 107,136 KB
実行使用メモリ 42,624 KB
最終ジャッジ日時 2024-12-26 19:40:47
合計ジャッジ時間 3,879 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
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