結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2018-01-17 01:40:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,592 KB |
最終ジャッジ日時 | 2024-12-24 05:16:03 |
合計ジャッジ時間 | 3,270 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 3 |
ソースコード
N = int(input()) A = sorted([int(i) for i in input().split()]) ans = 0 isOnly = True for i in range(N-1): if A[i] == A[i+1]: isOnly = False elif isOnly: ans += 1 if i == N-2: ans+=1 else: isOnly = True print(ans)