結果

問題 No.182 新規性の虜
ユーザー rocoderrocoder
提出日時 2017-07-29 12:33:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 285 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 20,388 KB
最終ジャッジ日時 2024-04-19 05:05:19
合計ジャッジ時間 3,244 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 27 ms
10,496 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 28 ms
10,624 KB
testcase_06 AC 31 ms
10,624 KB
testcase_07 AC 30 ms
10,624 KB
testcase_08 AC 89 ms
16,228 KB
testcase_09 AC 134 ms
19,788 KB
testcase_10 AC 121 ms
18,676 KB
testcase_11 AC 105 ms
17,024 KB
testcase_12 AC 52 ms
13,456 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 28 ms
10,624 KB
testcase_15 RE -
testcase_16 AC 26 ms
10,624 KB
testcase_17 AC 26 ms
10,752 KB
testcase_18 AC 89 ms
17,840 KB
testcase_19 AC 73 ms
15,888 KB
testcase_20 AC 58 ms
13,440 KB
testcase_21 AC 107 ms
18,832 KB
testcase_22 AC 70 ms
14,392 KB
testcase_23 RE -
testcase_24 AC 111 ms
20,388 KB
testcase_25 AC 74 ms
12,364 KB
testcase_26 AC 45 ms
11,776 KB
testcase_27 AC 33 ms
10,624 KB
evil01.txt AC 117 ms
21,372 KB
evil02.txt AC 112 ms
21,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# your code goes here
#new
N=int(input())
A=[int(i)for i in input().split()]
A.sort()
C=0
if A[0]!=A[1]:
    C+=1
  #  print (C)
for i in range(1,N-1):
    if A[i]!=A[i-1] and A[i]!=A[i+1]:
        C+=1
   #     print (A[i-1])
    #    print (A[i])
if A[N-2]!=A[N-1]:
    C+=1
print(C)
0