結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2020-02-17 14:35:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 54 ms / 5,000 ms |
コード長 | 436 bytes |
コンパイル時間 | 1,969 ms |
コンパイル使用メモリ | 177,992 KB |
実行使用メモリ | 8,704 KB |
最終ジャッジ日時 | 2024-10-06 14:56:23 |
合計ジャッジ時間 | 3,571 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) /* */ int main() { int N; cin >> N; vector<ll> A(N); rep(i,N){ cin >> A[i]; } sort(A.begin(),A.end()); map<int,int> ma; rep(i,N){ ma[A[i]]++; } int ans = 0; for(auto p : ma){ auto k = p.first; auto v = p.second; if(v == 1) ans++; } cout << ans << endl; }