結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2015-04-16 23:21:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 1,496 ms |
コンパイル使用メモリ | 165,240 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 15:02:12 |
合計ジャッジ時間 | 6,813 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 27 |
ソースコード
#include "bits/stdc++.h" using namespace std; int main() { int N; cin >> N; vector<int> A; map<int, int> m; for (int i = 0; i < N; i++) { cin >> A[i]; m[A[i]]++; } int ans = 0; for (auto i: m) { if (i.second == 1) ans++; } cout << ans << endl; }