結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2017-01-25 14:58:49 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 635 bytes |
コンパイル時間 | 1,219 ms |
コンパイル使用メモリ | 105,856 KB |
実行使用メモリ | 48,512 KB |
最終ジャッジ日時 | 2024-12-23 08:28:45 |
合計ジャッジ時間 | 47,167 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 9 TLE * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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(); } }