Submission #4062153


Source Code Expand

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		Set<Integer> set = new HashSet<Integer>();
		
		for(int i=0;i<N;i++) {
			int n = sc.nextInt();
			if(!set.contains(n)) {
				set.add(n);
			}
		}
		System.out.println(set.size());
	}
}

Submission Info

Submission Time
Task B - Kagami Mochi
User n_o
Language Java7 (OpenJDK 1.7.0)
Score 200
Code Size 352 Byte
Status AC
Exec Time 117 ms
Memory 21076 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 13
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13
Case Name Status Exec Time Memory
a01 AC 98 ms 19028 KB
a02 AC 99 ms 20820 KB
a03 AC 101 ms 19028 KB
b04 AC 99 ms 20820 KB
b05 AC 116 ms 19156 KB
b06 AC 114 ms 19156 KB
b07 AC 117 ms 19156 KB
b08 AC 104 ms 19028 KB
b09 AC 113 ms 19028 KB
b10 AC 113 ms 21076 KB
b11 AC 114 ms 19028 KB
b12 AC 113 ms 19028 KB
b13 AC 114 ms 19028 KB