結果

問題 No.182 新規性の虜
ユーザー Luoto-greenLuoto-green
提出日時 2017-07-07 11:16:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 101 ms / 5,000 ms
コード長 173 bytes
コンパイル時間 630 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 19,716 KB
最終ジャッジ日時 2023-08-27 15:27:27
合計ジャッジ時間 2,797 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,892 KB
testcase_01 AC 15 ms
7,824 KB
testcase_02 AC 16 ms
7,752 KB
testcase_03 AC 16 ms
7,752 KB
testcase_04 AC 15 ms
7,852 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 16 ms
7,824 KB
testcase_07 AC 15 ms
7,892 KB
testcase_08 AC 65 ms
13,688 KB
testcase_09 AC 101 ms
17,172 KB
testcase_10 AC 88 ms
15,960 KB
testcase_11 AC 74 ms
14,364 KB
testcase_12 AC 39 ms
10,744 KB
testcase_13 AC 16 ms
7,820 KB
testcase_14 AC 16 ms
7,916 KB
testcase_15 AC 16 ms
7,828 KB
testcase_16 AC 16 ms
7,848 KB
testcase_17 AC 16 ms
7,864 KB
testcase_18 AC 72 ms
16,332 KB
testcase_19 AC 56 ms
14,048 KB
testcase_20 AC 40 ms
11,484 KB
testcase_21 AC 83 ms
17,600 KB
testcase_22 AC 46 ms
12,768 KB
testcase_23 AC 15 ms
7,892 KB
testcase_24 AC 85 ms
19,716 KB
testcase_25 AC 56 ms
9,940 KB
testcase_26 AC 25 ms
9,396 KB
testcase_27 AC 15 ms
7,820 KB
evil01.txt AC 88 ms
18,828 KB
evil02.txt AC 89 ms
18,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
m = sorted(map(int,input().split()))
v = 0
for i in range(n):
    if n == 1:
        v = 1
    elif m[i-1]!=m[i-2] and m[i-1]!=m[i]:
        v += 1
print(v)
0