結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
piyoko_212
|
| 提出日時 | 2015-12-28 22:19:42 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 301 bytes |
| 記録 | |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 54,776 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-01 15:59:01 |
| 合計ジャッジ時間 | 1,497 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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