結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-07-29 12:36:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 131 ms / 5,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,388 KB |
| 最終ジャッジ日時 | 2024-12-27 17:31:39 |
| 合計ジャッジ時間 | 3,270 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#new
N=int(input())
if N==1:
C=1
else:
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