結果

問題 No.182 新規性の虜
ユーザー michonz4michonz4
提出日時 2019-05-30 15:32:51
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 65,572 KB
実行使用メモリ 8,312 KB
最終ジャッジ日時 2023-10-17 18:53:16
合計ジャッジ時間 2,103 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 39 ms
6,032 KB
testcase_09 AC 70 ms
7,564 KB
testcase_10 AC 59 ms
7,036 KB
testcase_11 AC 47 ms
6,440 KB
testcase_12 AC 18 ms
4,816 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 1 ms
4,348 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
4,348 KB
testcase_24 AC 55 ms
8,312 KB
testcase_25 AC 17 ms
4,348 KB
testcase_26 AC 8 ms
4,348 KB
testcase_27 AC 2 ms
4,348 KB
evil01.txt AC 67 ms
8,312 KB
evil02.txt AC 68 ms
8,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
#include <algorithm>

using namespace std;

int main() {
  int n;
  cin >> n;
  set<long long> st;
  
  for (int i=0; i<n; i++) {
    long long t;
    cin >> t;
    st.insert(t);
  }

  cout << max(0, (int)(st.size()-(n-st.size()))) << endl;
  return 0;
}
0