結果

問題 No.182 新規性の虜
ユーザー rocoderrocoder
提出日時 2017-07-29 12:36:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 19,516 KB
最終ジャッジ日時 2023-08-27 15:48:08
合計ジャッジ時間 2,552 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,748 KB
testcase_01 AC 15 ms
7,760 KB
testcase_02 AC 16 ms
7,728 KB
testcase_03 AC 15 ms
7,856 KB
testcase_04 AC 15 ms
7,732 KB
testcase_05 AC 16 ms
7,732 KB
testcase_06 AC 15 ms
7,764 KB
testcase_07 AC 15 ms
7,828 KB
testcase_08 AC 64 ms
13,680 KB
testcase_09 AC 97 ms
17,200 KB
testcase_10 AC 83 ms
16,204 KB
testcase_11 AC 71 ms
14,344 KB
testcase_12 AC 39 ms
10,700 KB
testcase_13 AC 15 ms
7,832 KB
testcase_14 AC 15 ms
7,768 KB
testcase_15 AC 15 ms
7,752 KB
testcase_16 AC 15 ms
7,756 KB
testcase_17 AC 15 ms
7,748 KB
testcase_18 AC 69 ms
16,360 KB
testcase_19 AC 53 ms
14,108 KB
testcase_20 AC 38 ms
11,492 KB
testcase_21 AC 76 ms
17,500 KB
testcase_22 AC 45 ms
12,664 KB
testcase_23 AC 15 ms
7,764 KB
testcase_24 AC 88 ms
19,516 KB
testcase_25 AC 53 ms
9,928 KB
testcase_26 AC 25 ms
9,384 KB
testcase_27 AC 15 ms
7,864 KB
evil01.txt AC 90 ms
18,840 KB
evil02.txt AC 91 ms
18,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#new
N=int(input())
if N==1:
    C=1
else:
    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