結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2020-02-28 21:37:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 61 ms / 5,000 ms |
コード長 | 727 bytes |
コンパイル時間 | 1,404 ms |
コンパイル使用メモリ | 173,020 KB |
実行使用メモリ | 8,192 KB |
最終ジャッジ日時 | 2024-10-13 17:01:44 |
合計ジャッジ時間 | 3,190 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
コンパイルメッセージ
main.cpp:21:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 21 | main() | ^~~~
ソースコード
#include<bits/stdc++.h> #define rep(i,n) for(int i=0;i<n;i++) #define FOR(i,a,b) for(int i=a;i<b;i++) #define each(it,v) for(auto &it : v) #define all(v) (v).begin(),(v).end() using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<ll>; using Pii = pair<int,int>; using Pll = pair<ll,ll>; using vpii = vector<Pii>; using vpll = vector<Pll>; const ll mod=1e9+7; const int intINF=INT_MAX; const ll longINF=LONG_LONG_MAX; main() { int n; cin>>n; map<int,int> m; rep(i,n) { int a; cin>>a; m[a]++; } int ans=0; each(it,m) { if(it.second==1)ans++; } cout<<ans<<endl; }