結果

問題 No.182 新規性の虜
ユーザー funakoshifunakoshi
提出日時 2019-06-26 13:35:14
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 879 bytes
コンパイル時間 4,290 ms
コンパイル使用メモリ 100,416 KB
実行使用メモリ 29,884 KB
最終ジャッジ日時 2023-09-07 02:47:04
合計ジャッジ時間 7,460 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,720 KB
testcase_01 AC 59 ms
20,812 KB
testcase_02 AC 60 ms
20,740 KB
testcase_03 AC 59 ms
20,824 KB
testcase_04 AC 58 ms
22,824 KB
testcase_05 AC 59 ms
22,864 KB
testcase_06 AC 59 ms
20,688 KB
testcase_07 AC 60 ms
22,772 KB
testcase_08 AC 97 ms
25,656 KB
testcase_09 AC 118 ms
29,884 KB
testcase_10 AC 111 ms
29,260 KB
testcase_11 AC 103 ms
28,016 KB
testcase_12 AC 82 ms
22,672 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 58 ms
18,708 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 58 ms
20,720 KB
testcase_24 AC 106 ms
29,012 KB
testcase_25 AC 100 ms
25,492 KB
testcase_26 AC 73 ms
21,840 KB
testcase_27 AC 60 ms
20,808 KB
evil01.txt AC 112 ms
30,648 KB
evil02.txt AC 112 ms
28,736 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 yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string findlist = Console.ReadLine();
            string[] list = findlist.Split(' ');
            int[] num = new int[list.Length];
            int Newcnt = int.Parse(input);
            for (int i = 0; i < num.Length; i++) 
            {
                num[i] = int.Parse(list[i]);
            }
            Array.Sort(num);
            for (int i = 0; i < num.Length - 1; i++)
            {
                if (num[i] == num[i+1])
                {
                    Newcnt -= 2;
                    i++;
                }

            }

            Console.WriteLine(Newcnt);
        }

    }
}
0