結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2017-03-12 06:58:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 71 ms / 5,000 ms |
コード長 | 400 bytes |
コンパイル時間 | 766 ms |
コンパイル使用メモリ | 86,440 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-12-27 12:37:01 |
合計ジャッジ時間 | 2,413 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <set> #include <map> #include <iomanip> using namespace std; using ll = long long; int main() { int N; cin >> N; map<int, int> m; for(int i=0; i<N; ++i) { int a; cin >> a; m[a]++; } cout << count_if(begin(m), end(m), [](auto const& p) { return p.second == 1; }) << endl; }