結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2019-05-30 15:46:15 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 66 ms / 5,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 618 ms |
コンパイル使用メモリ | 66,124 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-09-17 16:07:50 |
合計ジャッジ時間 | 1,882 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <iostream> #include <map> using namespace std; int main() { int n; cin >> n; map<int ,int> mp; for (int i=0; i<n; i++) { long long t; cin >> t; mp[t]++; } int cnt=0; for (auto itr=mp.begin(); itr!=mp.end(); ++itr) { if (itr->second==1) cnt++; } cout << cnt << endl; return 0; }