結果

問題 No.182 新規性の虜
ユーザー MarioMario
提出日時 2018-04-30 21:03:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 560 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 19,480 KB
最終ジャッジ日時 2023-09-10 08:31:12
合計ジャッジ時間 3,780 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 16 ms
7,776 KB
testcase_02 AC 15 ms
7,796 KB
testcase_03 AC 15 ms
7,852 KB
testcase_04 AC 16 ms
7,884 KB
testcase_05 AC 16 ms
7,760 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 15 ms
7,852 KB
testcase_08 AC 62 ms
13,668 KB
testcase_09 AC 95 ms
17,252 KB
testcase_10 AC 83 ms
15,876 KB
testcase_11 AC 73 ms
14,404 KB
testcase_12 AC 38 ms
10,800 KB
testcase_13 AC 15 ms
7,848 KB
testcase_14 AC 16 ms
7,884 KB
testcase_15 AC 15 ms
7,928 KB
testcase_16 AC 15 ms
7,784 KB
testcase_17 AC 16 ms
7,820 KB
testcase_18 AC 75 ms
16,352 KB
testcase_19 AC 54 ms
14,164 KB
testcase_20 AC 40 ms
11,404 KB
testcase_21 AC 85 ms
17,540 KB
testcase_22 AC 48 ms
12,616 KB
testcase_23 AC 16 ms
7,852 KB
testcase_24 AC 78 ms
19,480 KB
testcase_25 AC 55 ms
9,976 KB
testcase_26 AC 25 ms
9,372 KB
testcase_27 AC 15 ms
7,816 KB
evil01.txt AC 86 ms
18,800 KB
evil02.txt AC 82 ms
18,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

_ = int(input())
numbers = list(map(int, input().split()))
numbers.sort()

flag = 0
counter = 0

for i, num in enumerate(numbers[:-1]):
    
    if num != numbers[i+1] and flag != numbers[i]:
        counter += 1
    else:
        flag = num

if flag != numbers[-1]:
    counter += 1

print(counter)
0