結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-16 06:54:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 545 ms |
| コンパイル使用メモリ | 75,224 KB |
| 実行使用メモリ | 8,576 KB |
| 最終ジャッジ日時 | 2024-06-22 03:02:59 |
| 合計ジャッジ時間 | 2,021 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 13 |
ソースコード
#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(int i=0;i < cnt.size();i++){
if(cnt[A[i]] == 1) ans++;
}
cout << ans << endl;
return 0;
}