結果

問題 No.182 新規性の虜
ユーザー funakoshifunakoshi
提出日時 2019-06-26 10:21:23
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 943 bytes
コンパイル時間 3,183 ms
コンパイル使用メモリ 95,056 KB
実行使用メモリ 22,936 KB
最終ジャッジ日時 2023-09-06 15:13:19
合計ジャッジ時間 34,498 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 53 ms
14,676 KB
testcase_02 AC 54 ms
14,700 KB
testcase_03 AC 55 ms
14,676 KB
testcase_04 AC 54 ms
14,580 KB
testcase_05 AC 54 ms
14,700 KB
testcase_06 AC 54 ms
14,596 KB
testcase_07 AC 55 ms
14,600 KB
testcase_08 AC 1,396 ms
19,496 KB
testcase_09 WA -
testcase_10 AC 2,720 ms
21,924 KB
testcase_11 AC 1,888 ms
20,248 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 54 ms
14,564 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 54 ms
14,692 KB
testcase_24 TLE -
testcase_25 AC 80 ms
19,700 KB
testcase_26 AC 123 ms
15,960 KB
testcase_27 AC 54 ms
14,648 KB
evil01.txt TLE -
evil02.txt TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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]);
            }
            for(int i=0;i<num.Length;i+=2)
            {
                for(int j=i+1;j<num.Length;j++)
                {
                    if(num[i]==num[j])
                    {
                        Newcnt-=2;
                        break;
                    }
                }
            }
            
            Console.WriteLine(Newcnt);
        }

    }
}
0