結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
piyoko_212
|
| 提出日時 | 2015-12-28 22:19:42 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 12 ms / 5,000 ms |
| + 78µs | |
| コード長 | 301 bytes |
| 記録 | |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 55,560 KB |
| 実行使用メモリ | 9,900 KB |
| 最終ジャッジ日時 | 2026-10-08 10:01:53 |
| 合計ジャッジ時間 | 2,531 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include<stdio.h>
#include<algorithm>
using namespace std;
int b[110000];
int main(){
int a;scanf("%d",&a);
for(int i=0;i<a;i++)scanf("%d",b+i);
std::sort(b,b+a);
int ret=0;
for(int i=0;i<a;i++){
if(i&&b[i-1]==b[i])continue;
if(i<a-1&&b[i]==b[i+1])continue;
ret++;
}
printf("%d\n",ret);
}
piyoko_212