結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-03-01 05:34:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 59,320 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 12:59:33 |
| 合計ジャッジ時間 | 3,732 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 RE * 15 |
ソースコード
#include<iostream>
#include<algorithm>
using namespace std;
#define NMAX 10000
int main(){
int N;
int A[NMAX];
int ans=0;
cin>>N;
for(int i=0;i<N;i++){
cin>>A[i];
}
sort(A,A+N);
for(int i=0;i<N;i++){
if((i==0||A[i]!=A[i-1])&&(i==N-1||A[i]!=A[i+1])) ans++;
}
cout<<ans<<endl;
}
kongarishisyamo