結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2020-05-07 22:51:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 50 ms / 5,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 1,902 ms |
コンパイル使用メモリ | 175,052 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-07-03 09:39:15 |
合計ジャッジ時間 | 3,316 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int N; cin >> N; // unordered_map<int, int> m; map<int, int> m; for (int i = 0; i < N; i++) { int A; cin >> A; m[A]++; } int c = count_if(m.begin(), m.end(), [](const pair<int,int>& p) { return p.second==1; }); cout << c << endl; }