結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2017-07-29 12:29:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 289 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,772 KB |
最終ジャッジ日時 | 2024-10-10 21:40:52 |
合計ジャッジ時間 | 2,931 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 9 WA * 16 RE * 2 |
ソースコード
#new N=int(input()) A=[int(i)for i in input().split()] A.sort() C=0 if A[0]!=A[1]: C+=1 for i in range(1,N-2): 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)