結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2016-01-16 22:17:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 89 ms / 5,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 663 ms |
コンパイル使用メモリ | 66,348 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-12-26 20:05:53 |
合計ジャッジ時間 | 2,689 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include<iostream> #include<map> using namespace std; int main(){ int n, input; cin >> n; map<int, int> mp; for(int i=0; i<n; ++i){ cin >> input; ++mp[input]; } int ans = 0; for(auto it = mp.begin(); it != mp.end(); ++it){ ans += (it->second == 1); } cout << ans << endl; }