結果

問題 No.182 新規性の虜
ユーザー ssmkzkssmkzk
提出日時 2018-06-05 17:16:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 19,464 KB
最終ジャッジ日時 2023-09-12 22:26:37
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,732 KB
testcase_01 AC 15 ms
7,704 KB
testcase_02 AC 15 ms
7,916 KB
testcase_03 AC 16 ms
7,876 KB
testcase_04 AC 16 ms
7,772 KB
testcase_05 AC 16 ms
7,812 KB
testcase_06 AC 16 ms
7,872 KB
testcase_07 AC 16 ms
7,940 KB
testcase_08 AC 61 ms
13,580 KB
testcase_09 AC 95 ms
17,140 KB
testcase_10 AC 79 ms
16,272 KB
testcase_11 AC 70 ms
14,556 KB
testcase_12 AC 38 ms
10,672 KB
testcase_13 AC 15 ms
7,776 KB
testcase_14 AC 15 ms
7,708 KB
testcase_15 AC 15 ms
7,916 KB
testcase_16 AC 15 ms
7,768 KB
testcase_17 AC 14 ms
7,780 KB
testcase_18 AC 69 ms
16,268 KB
testcase_19 AC 53 ms
13,976 KB
testcase_20 AC 40 ms
11,320 KB
testcase_21 AC 78 ms
17,456 KB
testcase_22 AC 45 ms
12,652 KB
testcase_23 AC 15 ms
7,788 KB
testcase_24 AC 84 ms
19,464 KB
testcase_25 AC 58 ms
9,860 KB
testcase_26 AC 25 ms
9,304 KB
testcase_27 AC 15 ms
7,780 KB
evil01.txt AC 86 ms
18,880 KB
evil02.txt AC 82 ms
18,880 KB
権限があれば一括ダウンロードができます

ソースコード

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