Submission #1948567


Source Code Expand

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int t=sc.nextInt();
        int a[] =new int[101];
        for(int i=0;i<a.length;i++){
            a[i]=0;
        }
        int tot=0;
        while(t-->0){
            int n=sc.nextInt();
            if(a[n]==0){
                tot++;
                a[n]=1;
            }
        }
        System.out.println(tot);
    }
}

Submission Info

Submission Time
Task B - Kagami Mochi
User haengbog
Language Java8 (OpenJDK 1.8.0)
Score 200
Code Size 491 Byte
Status AC
Exec Time 111 ms
Memory 23892 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 20692 KB
a02 AC 95 ms 17876 KB
a03 AC 93 ms 21844 KB
b04 AC 93 ms 19156 KB
b05 AC 99 ms 22868 KB
b06 AC 110 ms 20820 KB
b07 AC 101 ms 21204 KB
b08 AC 110 ms 20564 KB
b09 AC 99 ms 21588 KB
b10 AC 111 ms 21460 KB
b11 AC 100 ms 23892 KB
b12 AC 111 ms 19156 KB
b13 AC 100 ms 21844 KB