結果

問題 No.182 新規性の虜
ユーザー ssmkzk
提出日時 2018-06-05 17:16:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,520 KB
最終ジャッジ日時 2024-06-30 09:56:19
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l = list(map(int, input().split()))
l.sort()
count = 0
ck = 0

if N == 1:
    count = 1
else:
    for i in range(N-1):
        if l[i] != l[i+1] and l[i] != ck:
            count += 1
            # print(l[i])
        ck = l[i]
    if l[-1] != ck:
        count += 1
    # print("aa")

print(count)
0