結果

問題 No.182 新規性の虜
ユーザー minezumuminezumu
提出日時 2018-07-23 19:30:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 20,844 KB
最終ジャッジ日時 2023-08-28 18:03:29
合計ジャッジ時間 2,366 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,828 KB
testcase_01 AC 14 ms
7,952 KB
testcase_02 AC 14 ms
7,788 KB
testcase_03 AC 14 ms
7,808 KB
testcase_04 AC 14 ms
7,988 KB
testcase_05 AC 14 ms
7,808 KB
testcase_06 AC 14 ms
7,788 KB
testcase_07 AC 14 ms
7,856 KB
testcase_08 AC 38 ms
15,272 KB
testcase_09 AC 52 ms
20,316 KB
testcase_10 AC 44 ms
16,448 KB
testcase_11 AC 41 ms
16,076 KB
testcase_12 AC 27 ms
13,324 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 14 ms
7,824 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 14 ms
7,956 KB
testcase_24 AC 49 ms
20,844 KB
testcase_25 AC 33 ms
9,920 KB
testcase_26 AC 19 ms
9,848 KB
testcase_27 AC 15 ms
7,860 KB
evil01.txt AC 54 ms
20,968 KB
evil02.txt AC 55 ms
21,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))
B = set(A)
a = len(A)
b = len(B)
if 2*b-a < 0 :
    print(0)
else :
    print(2*b-a)

0