結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2021-05-29 20:58:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 47 ms / 5,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 2,068 ms |
コンパイル使用メモリ | 198,696 KB |
最終ジャッジ日時 | 2025-01-21 20:38:15 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; map <int, int> cnt; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n, t; int res = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> t; cnt[t]++; } for (auto it : cnt) { if (it.second == 1) res++; } cout << res << '\n'; return 0; }