結果
問題 |
No.182 新規性の虜
|
ユーザー |
👑 |
提出日時 | 2020-09-08 07:13:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 141 ms / 5,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,512 KB |
最終ジャッジ日時 | 2024-11-29 11:45:49 |
合計ジャッジ時間 | 3,743 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
n = int(input()) alst = list(map(int, input().split())) + [0, 10 ** 10] alst.sort() ans = 0 for i in range(1, n + 1): if alst[i] != alst[i - 1] and alst[i] != alst[i + 1]: ans += 1 print(ans)