Submission #2529723


Source Code Expand

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



import java.util.* ;

/**
 *
 * @author nai
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception{
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        HashSet<Integer> set = new HashSet<>();
        for(int i = 0 ; i< N ; i++){
            set.add(sc.nextInt());
        }
        System.out.println(set.size());
    }
  }
    

Submission Info

Submission Time
Task B - Kagami Mochi
User baito
Language Java8 (OpenJDK 1.8.0)
Score 200
Code Size 717 Byte
Status AC
Exec Time 111 ms
Memory 21588 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 94 ms 19284 KB
a02 AC 94 ms 19412 KB
a03 AC 95 ms 19412 KB
b04 AC 94 ms 19412 KB
b05 AC 109 ms 20052 KB
b06 AC 99 ms 19284 KB
b07 AC 109 ms 17492 KB
b08 AC 109 ms 18004 KB
b09 AC 110 ms 21588 KB
b10 AC 108 ms 20684 KB
b11 AC 111 ms 19284 KB
b12 AC 99 ms 19028 KB
b13 AC 99 ms 20560 KB