結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-16 06:55:29 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 5,000 ms |
| コード長 | 329 bytes |
| 記録 | |
| コンパイル時間 | 558 ms |
| コンパイル使用メモリ | 87,032 KB |
| 実行使用メモリ | 8,832 KB |
| 最終ジャッジ日時 | 2026-03-06 08:23:20 |
| 合計ジャッジ時間 | 1,635 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include<iostream>
#include<map>
using namespace std;
int main(){
int n;
cin >> n;
int A[n];
map<int,int> cnt;
for(int i=0;i < n;i++){
cin >> A[i];
cnt[A[i]]++;
}
int ans = 0;
for(auto i: cnt){
if(i.second == 1) ans++;
}
cout << ans << endl;
return 0;
}