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