結果

問題 No.182 新規性の虜
ユーザー swdamdrswdamdr
提出日時 2017-01-25 14:58:49
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 635 bytes
コンパイル時間 2,389 ms
コンパイル使用メモリ 104,212 KB
実行使用メモリ 34,360 KB
最終ジャッジ日時 2023-08-24 22:12:32
合計ジャッジ時間 14,256 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
15,568 KB
testcase_01 AC 64 ms
15,708 KB
testcase_02 AC 65 ms
15,728 KB
testcase_03 AC 63 ms
15,704 KB
testcase_04 AC 64 ms
15,668 KB
testcase_05 AC 64 ms
15,708 KB
testcase_06 AC 63 ms
15,660 KB
testcase_07 AC 64 ms
15,548 KB
testcase_08 AC 4,259 ms
21,708 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        int total = int.Parse(Console.ReadLine());
        long[] ary = Console.ReadLine().Split().Select(xx => long.Parse(xx)).ToArray();
        List<long> list = new List<long>();
        long m = ary[0];

        foreach (long i in ary)
        {

            if (!list.Contains(i))
            {
                list.Add(i);
            }
            else
            {
                list.Remove(i);
            }

        }

        Console.WriteLine(list.Count);
        Console.ReadLine();
    }
}

0