結果

問題 No.182 新規性の虜
ユーザー chiyodachiyoda
提出日時 2016-06-28 21:19:34
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 557 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 65,164 KB
実行使用メモリ 14,016 KB
最終ジャッジ日時 2024-04-20 03:07:33
合計ジャッジ時間 10,045 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define ll long long
#define pb(x) push_back(x)
using namespace std;

int main() {
  int n;
  cin >> n;
  int a[n];
  rep(i, n) cin>> a[i];
  int cnt = 0;
  rep(i, n) {
    bool flg = false;
    rep(j, n) {
      if(a[i] == a[j] && i != j) {
        flg = !flg;
      }
    }
    if (flg) cnt++;
  }
  cout << cnt << endl;
  return 0;
}
0