結果

問題 No.182 新規性の虜
ユーザー shika_126shika_126
提出日時 2022-03-24 16:36:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 23,568 KB
最終ジャッジ日時 2024-04-21 02:18:04
合計ジャッジ時間 2,527 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 28 ms
10,752 KB
testcase_02 AC 28 ms
10,880 KB
testcase_03 AC 29 ms
10,752 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 29 ms
10,880 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 29 ms
10,752 KB
testcase_08 AC 56 ms
17,960 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 28 ms
10,880 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 28 ms
10,752 KB
testcase_24 AC 72 ms
23,568 KB
testcase_25 AC 54 ms
12,616 KB
testcase_26 AC 32 ms
12,672 KB
testcase_27 AC 27 ms
10,752 KB
evil01.txt AC 76 ms
23,696 KB
evil02.txt AC 77 ms
23,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [int(x) for x in input().split()]
t = set(a)
al = len(a)
tl = len(t)
if n == 1:
    print(1)
elif tl == 1:
    print(0)
elif al == tl:
    print(al)
else:
    print(al-tl)
0