結果

問題 No.182 新規性の虜
ユーザー cumincumin
提出日時 2020-08-09 08:22:50
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 824 bytes
コンパイル時間 1,777 ms
コンパイル使用メモリ 169,996 KB
実行使用メモリ 9,728 KB
最終ジャッジ日時 2024-04-14 15:20:13
合計ジャッジ時間 3,934 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,948 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 30 ms
6,944 KB
testcase_09 AC 60 ms
8,704 KB
testcase_10 AC 50 ms
7,936 KB
testcase_11 AC 37 ms
7,296 KB
testcase_12 AC 13 ms
6,944 KB
testcase_13 AC 2 ms
6,940 KB
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 2 ms
6,940 KB
testcase_16 AC 2 ms
6,944 KB
testcase_17 AC 2 ms
6,940 KB
testcase_18 AC 19 ms
6,944 KB
testcase_19 AC 15 ms
6,940 KB
testcase_20 AC 11 ms
6,940 KB
testcase_21 AC 22 ms
6,944 KB
testcase_22 AC 12 ms
6,940 KB
testcase_23 AC 2 ms
6,944 KB
testcase_24 AC 43 ms
9,728 KB
testcase_25 AC 7 ms
6,944 KB
testcase_26 AC 7 ms
6,940 KB
testcase_27 AC 2 ms
6,940 KB
evil01.txt AC 47 ms
9,728 KB
evil02.txt AC 46 ms
9,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);++i)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false); 
  
  int n;
  cin >> n;
  map<ll,int>mp;
  rep(i,n){
    ll a;
    cin >> a;
    mp[a]++;
  }
  int cnt = 0;
  for(auto p:mp){
    if(p.second==1)cnt++;
  }
  cout << cnt << endl;
  return 0;
}
0