結果

問題 No.182 新規性の虜
ユーザー motor_radialmotor_radial
提出日時 2019-07-29 16:11:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 106 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 615 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2023-09-15 11:56:48
合計ジャッジ時間 2,609 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,816 KB
testcase_01 AC 17 ms
7,832 KB
testcase_02 AC 16 ms
7,828 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 AC 16 ms
7,924 KB
testcase_05 AC 16 ms
7,968 KB
testcase_06 AC 15 ms
7,844 KB
testcase_07 AC 15 ms
7,892 KB
testcase_08 AC 68 ms
13,768 KB
testcase_09 AC 106 ms
17,312 KB
testcase_10 AC 94 ms
15,848 KB
testcase_11 AC 75 ms
14,480 KB
testcase_12 AC 41 ms
10,736 KB
testcase_13 AC 15 ms
7,752 KB
testcase_14 AC 15 ms
7,948 KB
testcase_15 AC 15 ms
7,776 KB
testcase_16 AC 15 ms
7,756 KB
testcase_17 AC 15 ms
7,864 KB
testcase_18 AC 69 ms
16,456 KB
testcase_19 AC 55 ms
14,024 KB
testcase_20 AC 39 ms
11,480 KB
testcase_21 AC 77 ms
17,496 KB
testcase_22 AC 45 ms
12,680 KB
testcase_23 AC 15 ms
7,844 KB
testcase_24 AC 93 ms
19,584 KB
testcase_25 AC 53 ms
9,876 KB
testcase_26 AC 27 ms
9,332 KB
testcase_27 AC 15 ms
7,920 KB
evil01.txt AC 97 ms
18,892 KB
evil02.txt AC 96 ms
18,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
count=0
A.sort()
for i in range(N):
    if i!=0:
        if A[i]==A[i-1]:
            continue
    if i!=N-1:
        if A[i]==A[i+1]:
            continue
    count+=1
print(count)
0