結果
問題 | No.182 新規性の虜 |
ユーザー |
|
提出日時 | 2015-06-16 00:20:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 83 ms / 5,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 2,454 ms |
コンパイル使用メモリ | 164,180 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-12-26 19:27:37 |
合計ジャッジ時間 | 3,716 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<int, int> A; int a_max = 0; for (int i = 0; i < n; ++i) { int a; cin >> a; a_max = max(a_max, a); A[a]++; } int ans = 0; for (map<int, int>::iterator it = A.begin(); it != A.end(); ++it) { if (it -> second == 1) ans++; } cout << ans << endl; }