結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2020-03-18 17:17:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 76 ms / 5,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 1,846 ms |
コンパイル使用メモリ | 173,764 KB |
実行使用メモリ | 9,728 KB |
最終ジャッジ日時 | 2024-12-14 02:17:33 |
合計ジャッジ時間 | 4,166 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; map<long long, int> mp; for( int i = 0; i < N; i++ ) { long long A; cin >> A; mp[A]++; } int ans = 0; for( auto it = mp.begin(); it != mp.end(); it++ ) { if( it->second == 1 ) ans++; } cout << ans << endl; }