結果

問題 No.182 新規性の虜
ユーザー kuuso1kuuso1
提出日時 2015-04-17 01:58:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 117 ms / 5,000 ms
コード長 1,064 bytes
コンパイル時間 3,354 ms
コンパイル使用メモリ 107,320 KB
実行使用メモリ 32,400 KB
最終ジャッジ日時 2023-08-27 07:09:49
合計ジャッジ時間 6,248 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
20,804 KB
testcase_01 AC 62 ms
20,724 KB
testcase_02 AC 61 ms
20,680 KB
testcase_03 AC 61 ms
22,728 KB
testcase_04 AC 62 ms
20,636 KB
testcase_05 AC 62 ms
20,620 KB
testcase_06 AC 62 ms
22,660 KB
testcase_07 AC 61 ms
20,640 KB
testcase_08 AC 97 ms
27,900 KB
testcase_09 AC 117 ms
32,400 KB
testcase_10 AC 110 ms
29,872 KB
testcase_11 AC 103 ms
28,448 KB
testcase_12 AC 84 ms
21,120 KB
testcase_13 AC 61 ms
20,660 KB
testcase_14 AC 62 ms
20,656 KB
testcase_15 AC 61 ms
22,652 KB
testcase_16 AC 61 ms
20,732 KB
testcase_17 AC 62 ms
20,624 KB
testcase_18 AC 95 ms
28,288 KB
testcase_19 AC 88 ms
25,092 KB
testcase_20 AC 83 ms
22,240 KB
testcase_21 AC 98 ms
26,680 KB
testcase_22 AC 85 ms
22,728 KB
testcase_23 AC 62 ms
20,544 KB
testcase_24 AC 113 ms
31,872 KB
testcase_25 AC 96 ms
27,328 KB
testcase_26 AC 76 ms
21,788 KB
testcase_27 AC 62 ms
22,684 KB
evil01.txt AC 122 ms
33,576 KB
evil02.txt AC 120 ms
35,488 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;
using System.Collections.Generic;
 
class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		Dictionary<int,int> D=new Dictionary<int,int>();
		for(int i=0;i<N;i++){
			if(D.ContainsKey(A[i])==false)D.Add(A[i],0);
			D[A[i]]++;
		}
		int cnt=0;
		foreach(var k in D.Keys){
			if(D[k]==1)cnt++;
		}
		Console.WriteLine(cnt);
		
	}
	int N;
	int[] A;
	public Sol(){
		N=ri();
		A=ria();
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0