結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
tottoripaper
|
| 提出日時 | 2015-04-16 23:22:31 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 5,000 ms |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 381 ms |
| コンパイル使用メモリ | 55,096 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-01 14:56:35 |
| 合計ジャッジ時間 | 2,193 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <cstdio>
#include <algorithm>
int main(){
int N;
scanf("%d", &N);
int A[100000];
for(int i=0;i<N;i++){
scanf("%d", A+i);
}
std::sort(A, A+N);
int count = 0;
for(int i=0,j=0;i<N;){
while(j < N && A[j] == A[i]){j++;}
if(j-i == 1){count++;}
i = j;
}
printf("%d\n", count);
}
tottoripaper