結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2018-03-02 00:49:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 55 ms / 5,000 ms |
コード長 | 457 bytes |
コンパイル時間 | 728 ms |
コンパイル使用メモリ | 77,692 KB |
実行使用メモリ | 8,072 KB |
最終ジャッジ日時 | 2024-12-26 07:24:25 |
合計ジャッジ時間 | 2,345 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
// No.182 新規性の虜 // https://yukicoder.me/problems/no/182 // #include <iostream> #include <unordered_map> using namespace std; int main() { cin.tie(0); int N; cin >> N; unordered_map<int, int> numbers; for (auto i = 0; i < N; ++i) { int tmp; cin >> tmp; numbers[tmp]++; } int ans = 0; for (auto n: numbers) { if (n.second == 1) ++ans; } cout << ans << endl; }