結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2017-02-05 17:30:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 72 ms / 5,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 1,446 ms |
コンパイル使用メモリ | 167,012 KB |
実行使用メモリ | 8,192 KB |
最終ジャッジ日時 | 2024-12-27 12:28:51 |
合計ジャッジ時間 | 3,338 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> A(N); long long c; map<int, int> m; for (int i = 0; i < N; i++) { cin >> c; m[c]++; } int ans = 0; for (auto it : m) { if (it.second == 1) ans++; } cout << ans << endl; }