結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-21 21:34:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,520 KB |
| 最終ジャッジ日時 | 2024-10-15 00:54:40 |
| 合計ジャッジ時間 | 3,148 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 RE * 2 |
ソースコード
N = int(input())
listA = [int(i) for i in input().split()]
listA.sort()
count = 0
for i in range(len(listA)):
if i == 0:
if listA[i] != listA[(i+1)]:
count += 1
elif i == len(listA)-1:
if listA[(i-1)] != listA[i]:
count += 1
else:
if listA[(i-1)] != listA[i] and listA[i] != listA[(i+1)]:
count += 1
print(count)