結果

問題 No.182 新規性の虜
ユーザー mbanmban
提出日時 2016-11-05 14:51:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 1,249 ms / 5,000 ms
コード長 639 bytes
コンパイル時間 6,034 ms
コンパイル使用メモリ 103,456 KB
実行使用メモリ 37,676 KB
最終ジャッジ日時 2023-08-27 13:20:39
合計ジャッジ時間 14,009 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
22,428 KB
testcase_01 AC 62 ms
24,432 KB
testcase_02 AC 63 ms
22,512 KB
testcase_03 AC 62 ms
22,340 KB
testcase_04 AC 61 ms
22,512 KB
testcase_05 AC 63 ms
22,564 KB
testcase_06 AC 63 ms
22,388 KB
testcase_07 AC 63 ms
22,492 KB
testcase_08 AC 89 ms
32,740 KB
testcase_09 AC 106 ms
37,676 KB
testcase_10 AC 99 ms
33,216 KB
testcase_11 AC 94 ms
33,288 KB
testcase_12 AC 81 ms
25,476 KB
testcase_13 AC 63 ms
22,316 KB
testcase_14 AC 63 ms
22,416 KB
testcase_15 AC 61 ms
22,260 KB
testcase_16 AC 63 ms
22,336 KB
testcase_17 AC 64 ms
22,504 KB
testcase_18 AC 1,249 ms
28,004 KB
testcase_19 AC 1,178 ms
24,780 KB
testcase_20 AC 935 ms
23,980 KB
testcase_21 AC 1,239 ms
28,292 KB
testcase_22 AC 1,078 ms
24,584 KB
testcase_23 AC 62 ms
22,444 KB
testcase_24 AC 101 ms
35,404 KB
testcase_25 AC 88 ms
28,872 KB
testcase_26 AC 75 ms
23,668 KB
testcase_27 AC 61 ms
22,488 KB
evil01.txt AC 107 ms
38,848 KB
evil02.txt AC 106 ms
36,876 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;

class Magatro
{
    static void Main()
    {
        int ans = 0;
        int N = int.Parse(Console.ReadLine());
        string[] q = Console.ReadLine().Split(' ');
        HashSet<string> H = new HashSet<string>();
        List<string> L = new List<string>();
        for(int i = 0; i < N; i++)
        {
            if (H.Add(q[i]))
            {
                L.Add(q[i]);
            }
            else
            {
                L.Remove(q[i]);
            }
        }
        Console.WriteLine(L.Count);
    }
}
0