結果

問題 No.182 新規性の虜
ユーザー ooh_23ooh_23
提出日時 2018-01-15 11:41:44
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 1,100 bytes
コンパイル時間 2,426 ms
コンパイル使用メモリ 101,312 KB
実行使用メモリ 35,684 KB
最終ジャッジ日時 2023-08-27 17:03:51
合計ジャッジ時間 6,290 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
22,716 KB
testcase_01 AC 61 ms
22,772 KB
testcase_02 AC 62 ms
22,712 KB
testcase_03 AC 64 ms
20,600 KB
testcase_04 AC 63 ms
20,744 KB
testcase_05 AC 61 ms
20,680 KB
testcase_06 AC 64 ms
20,692 KB
testcase_07 AC 64 ms
20,680 KB
testcase_08 AC 101 ms
28,908 KB
testcase_09 AC 119 ms
35,684 KB
testcase_10 AC 111 ms
30,744 KB
testcase_11 AC 104 ms
29,440 KB
testcase_12 AC 85 ms
25,744 KB
testcase_13 AC 62 ms
20,724 KB
testcase_14 AC 62 ms
22,720 KB
testcase_15 AC 61 ms
20,676 KB
testcase_16 AC 62 ms
20,736 KB
testcase_17 AC 62 ms
20,684 KB
testcase_18 AC 101 ms
26,356 KB
testcase_19 AC 92 ms
25,232 KB
testcase_20 AC 83 ms
22,284 KB
testcase_21 AC 103 ms
26,660 KB
testcase_22 AC 87 ms
24,880 KB
testcase_23 AC 61 ms
20,688 KB
testcase_24 AC 119 ms
34,828 KB
testcase_25 AC 96 ms
25,020 KB
testcase_26 AC 77 ms
21,884 KB
testcase_27 AC 62 ms
20,680 KB
evil01.txt AC 129 ms
35,072 KB
evil02.txt AC 129 ms
37,180 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;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
            Dictionary<string, int> seisu = new Dictionary<string, int>();

            string row = Console.ReadLine();
            int N = int.Parse(row);

            row = Console.ReadLine();
            // 空白区切りで一旦文字列の配列に区切る
            string[] A = row.Split();

            for (int j = 0; j < N; j++)
            {
                string num = A[j];
                if (seisu.ContainsKey(num))
                {
                    seisu[num] += 1;
                }
                else
                {
                    seisu[num] = 1;
                }
            }
            int count = 0;
            foreach(string key in seisu.Keys)
            {
                if(seisu[key] == 1)
                {
                    count++;
                }
            }

            Console.WriteLine(count);
        }
    }
}
0