結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 16 ms
7,732 KB
testcase_02 AC 16 ms
7,784 KB
testcase_03 AC 16 ms
7,764 KB
testcase_04 AC 16 ms
7,880 KB
testcase_05 AC 16 ms
7,908 KB
testcase_06 AC 16 ms
7,780 KB
testcase_07 AC 16 ms
7,820 KB
testcase_08 AC 54 ms
13,580 KB
testcase_09 AC 85 ms
17,196 KB
testcase_10 AC 75 ms
15,856 KB
testcase_11 AC 63 ms
14,472 KB
testcase_12 AC 35 ms
10,924 KB
testcase_13 AC 16 ms
7,900 KB
testcase_14 AC 16 ms
7,856 KB
testcase_15 AC 16 ms
7,728 KB
testcase_16 AC 16 ms
7,820 KB
testcase_17 AC 16 ms
7,760 KB
testcase_18 AC 90 ms
16,460 KB
testcase_19 AC 67 ms
14,188 KB
testcase_20 AC 44 ms
11,940 KB
testcase_21 AC 104 ms
17,500 KB
testcase_22 AC 55 ms
12,876 KB
testcase_23 AC 16 ms
7,780 KB
testcase_24 AC 68 ms
19,572 KB
testcase_25 AC 72 ms
9,956 KB
testcase_26 AC 23 ms
9,368 KB
testcase_27 AC 16 ms
7,760 KB
evil01.txt AC 69 ms
18,860 KB
evil02.txt AC 69 ms
18,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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