結果

問題 No.182 新規性の虜
ユーザー y_nakamura_CC2y_nakamura_CC2
提出日時 2018-01-17 02:17:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 19,756 KB
最終ジャッジ日時 2023-08-27 17:06:57
合計ジャッジ時間 2,917 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,852 KB
testcase_01 AC 17 ms
7,776 KB
testcase_02 AC 17 ms
7,880 KB
testcase_03 AC 16 ms
7,908 KB
testcase_04 AC 16 ms
7,696 KB
testcase_05 AC 17 ms
7,848 KB
testcase_06 AC 16 ms
7,736 KB
testcase_07 AC 17 ms
7,804 KB
testcase_08 AC 55 ms
13,512 KB
testcase_09 AC 86 ms
17,240 KB
testcase_10 AC 73 ms
15,820 KB
testcase_11 AC 63 ms
14,528 KB
testcase_12 AC 35 ms
10,936 KB
testcase_13 AC 16 ms
7,840 KB
testcase_14 AC 16 ms
7,928 KB
testcase_15 AC 16 ms
7,760 KB
testcase_16 AC 16 ms
7,780 KB
testcase_17 AC 16 ms
7,820 KB
testcase_18 AC 90 ms
16,428 KB
testcase_19 AC 66 ms
13,932 KB
testcase_20 AC 44 ms
11,896 KB
testcase_21 AC 97 ms
17,492 KB
testcase_22 AC 50 ms
12,996 KB
testcase_23 AC 15 ms
7,772 KB
testcase_24 AC 68 ms
19,756 KB
testcase_25 AC 74 ms
9,916 KB
testcase_26 AC 23 ms
9,288 KB
testcase_27 AC 16 ms
7,776 KB
evil01.txt AC 70 ms
18,888 KB
evil02.txt AC 68 ms
18,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = sorted([int(i) for i in input().split()])
count = 0
num = []

for i in range(1,N):

    if A[i-1] == A[i]:
        count +=1
        num.append(A[i])
    
print(N - count - len(set(num)))
0