結果

問題 No.182 新規性の虜
ユーザー kamomekamome
提出日時 2019-07-25 18:52:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 100 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 16,040 KB
最終ジャッジ日時 2023-09-15 00:04:05
合計ジャッジ時間 2,601 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,944 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 15 ms
7,868 KB
testcase_03 AC 15 ms
7,864 KB
testcase_04 AC 15 ms
7,792 KB
testcase_05 AC 15 ms
7,944 KB
testcase_06 AC 16 ms
7,940 KB
testcase_07 AC 15 ms
7,704 KB
testcase_08 AC 65 ms
12,088 KB
testcase_09 AC 100 ms
14,644 KB
testcase_10 AC 86 ms
13,688 KB
testcase_11 AC 73 ms
12,592 KB
testcase_12 AC 38 ms
9,720 KB
testcase_13 AC 15 ms
7,920 KB
testcase_14 AC 15 ms
7,940 KB
testcase_15 AC 16 ms
7,996 KB
testcase_16 AC 15 ms
7,856 KB
testcase_17 AC 16 ms
7,872 KB
testcase_18 AC 70 ms
13,480 KB
testcase_19 AC 51 ms
12,212 KB
testcase_20 AC 36 ms
10,460 KB
testcase_21 AC 82 ms
14,316 KB
testcase_22 AC 44 ms
10,908 KB
testcase_23 AC 15 ms
7,992 KB
testcase_24 AC 73 ms
16,040 KB
testcase_25 AC 38 ms
9,152 KB
testcase_26 AC 24 ms
8,736 KB
testcase_27 AC 15 ms
7,860 KB
evil01.txt AC 77 ms
15,648 KB
evil02.txt AC 76 ms
15,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
l=input().split()
if len(l)==1:
    print(1)
    exit(0)
_new=0
l.sort()
if l[0] != l[1]:
    _new=_new+1
for i in range(1,len(l)-1):
    if (l[i]!=l[i-1]) and (l[i] != l[i+1]):
        _new=_new+1
if l[-1] != l[-2]:
    _new=_new+1
    
print(_new)
0