結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2017-08-08 23:28:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 72 ms / 5,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 710 ms |
コンパイル使用メモリ | 75,736 KB |
実行使用メモリ | 8,192 KB |
最終ジャッジ日時 | 2024-12-27 18:00:47 |
合計ジャッジ時間 | 2,389 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include<iostream> #include<map> #define REP(i,n) for(i=0; i<n; i++) using namespace std; int main() { int n; cin>>n; map<int,int> m; int num,i; REP(i,n){ cin>>num; m[num]++; } int cnt=0; for(auto itr=m.begin(); itr!=m.end(); ++itr) { if(itr->second == 1) { cnt++; } } cout << cnt << endl; return 0; }