結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-16 23:26:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 5,000 ms |
| コード長 | 377 bytes |
| コンパイル時間 | 1,111 ms |
| コンパイル使用メモリ | 67,544 KB |
| 実行使用メモリ | 8,192 KB |
| 最終ジャッジ日時 | 2024-12-26 18:45:39 |
| 合計ジャッジ時間 | 2,851 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <set>
using namespace std;
int main() {
int n, in;
cin >> n;
set<int> a, b;
for (int i = 0; i < n; i++) {
cin >> in;
if (a.count(in) > 0) {
b.insert(in);
} else {
a.insert(in);
}
}
int ans = a.size() - b.size();
cout << ans << endl;
return 0;
}