結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2019-02-08 20:07:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 76 ms / 5,000 ms |
コード長 | 413 bytes |
コンパイル時間 | 1,461 ms |
コンパイル使用メモリ | 164,308 KB |
実行使用メモリ | 9,600 KB |
最終ジャッジ日時 | 2024-06-28 16:50:34 |
合計ジャッジ時間 | 3,142 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long LL; int main() { // 1. 入力情報取得. int N; cin >> N; map<LL, int> m; for(int i = 0; i < N; i++){ LL a; cin >> a; m[a]++; } // 2. 新規性は? int ans = 0; for(auto &p : m) if(p.second == 1) ans++; // 3. 後処理. cout << ans << endl; return 0; }