結果

問題 No.182 新規性の虜
ユーザー uafr_csuafr_cs
提出日時 2015-05-16 01:25:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 2,162 ms
コンパイル使用メモリ 73,136 KB
実行使用メモリ 67,160 KB
最終ジャッジ日時 2023-09-20 09:00:23
合計ジャッジ時間 14,367 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 127 ms
56,060 KB
testcase_03 AC 132 ms
55,944 KB
testcase_04 AC 130 ms
55,700 KB
testcase_05 AC 130 ms
55,656 KB
testcase_06 AC 127 ms
55,512 KB
testcase_07 AC 129 ms
55,960 KB
testcase_08 AC 528 ms
62,856 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 124 ms
55,788 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 128 ms
55,756 KB
testcase_24 AC 583 ms
67,160 KB
testcase_25 WA -
testcase_26 AC 286 ms
60,344 KB
testcase_27 AC 127 ms
55,668 KB
evil01.txt AC 659 ms
65,072 KB
evil02.txt AC 664 ms
65,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;

public class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		Set<Integer> set = new HashSet<Integer>();
		for(int i = 0; i < N; i++){
			set.add(sc.nextInt());
		}
		
		System.out.println(set.size());
		
	}
	
}
0