結果

問題 No.182 新規性の虜
ユーザー kamomekamome
提出日時 2019-07-25 18:51:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 218 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 15,532 KB
最終ジャッジ日時 2023-09-15 00:04:02
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 15 ms
7,784 KB
testcase_02 AC 15 ms
7,780 KB
testcase_03 AC 16 ms
7,868 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 15 ms
7,744 KB
testcase_06 AC 15 ms
7,900 KB
testcase_07 AC 16 ms
7,944 KB
testcase_08 AC 65 ms
12,008 KB
testcase_09 AC 104 ms
14,428 KB
testcase_10 AC 90 ms
13,636 KB
testcase_11 AC 75 ms
12,620 KB
testcase_12 AC 37 ms
9,904 KB
testcase_13 AC 16 ms
7,860 KB
testcase_14 AC 15 ms
7,824 KB
testcase_15 RE -
testcase_16 AC 15 ms
7,916 KB
testcase_17 AC 16 ms
7,856 KB
testcase_18 AC 69 ms
13,644 KB
testcase_19 AC 53 ms
11,960 KB
testcase_20 AC 36 ms
10,196 KB
testcase_21 AC 78 ms
14,300 KB
testcase_22 AC 42 ms
10,836 KB
testcase_23 RE -
testcase_24 AC 75 ms
15,532 KB
testcase_25 AC 37 ms
9,072 KB
testcase_26 AC 25 ms
8,568 KB
testcase_27 AC 15 ms
7,784 KB
evil01.txt AC 78 ms
15,868 KB
evil02.txt AC 75 ms
15,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
l=input().split()
_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