結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-07-29 12:33:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,644 KB |
| 最終ジャッジ日時 | 2024-10-10 21:41:30 |
| 合計ジャッジ時間 | 3,169 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 RE * 2 |
ソースコード
# your code goes here
#new
N=int(input())
A=[int(i)for i in input().split()]
A.sort()
C=0
if A[0]!=A[1]:
C+=1
# print (C)
for i in range(1,N-1):
if A[i]!=A[i-1] and A[i]!=A[i+1]:
C+=1
# print (A[i-1])
# print (A[i])
if A[N-2]!=A[N-1]:
C+=1
print(C)
rocoder