結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-25 17:54:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 72 ms / 5,000 ms |
| コード長 | 288 bytes |
| コンパイル時間 | 748 ms |
| コンパイル使用メモリ | 65,752 KB |
| 実行使用メモリ | 8,064 KB |
| 最終ジャッジ日時 | 2024-12-27 19:02:48 |
| 合計ジャッジ時間 | 2,329 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <map>
using namespace std;
int main()
{
int N, i, t, ans = 0;
cin >> N;
map<int, int> A;
for (i = 0; i < N; i++)
cin >> t, A[t]++;
for (auto itr = A.begin(); itr != A.end(); itr++)
if (itr->second == 1) ans++;
cout << ans << endl;
return 0;
}