結果

問題 No.182 新規性の虜
ユーザー MayimgMayimg
提出日時 2018-12-24 12:25:02
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 1,730 ms
コンパイル使用メモリ 171,432 KB
実行使用メモリ 8,264 KB
最終ジャッジ日時 2023-10-26 02:59:09
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 1 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 21 ms
5,984 KB
testcase_09 AC 35 ms
7,516 KB
testcase_10 AC 30 ms
6,988 KB
testcase_11 AC 24 ms
6,392 KB
testcase_12 AC 10 ms
4,768 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 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 35 ms
8,264 KB
testcase_25 AC 7 ms
4,348 KB
testcase_26 AC 5 ms
4,348 KB
testcase_27 AC 2 ms
4,348 KB
evil01.txt AC 37 ms
8,264 KB
evil02.txt AC 37 ms
8,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);  
	int n;
	cin >> n;
	set<int> a;
	for(int i = 0; i < n; i++) {
		int x;
		cin >> x;
		a.insert(x);
	}
	cout << max(0, n - (n - (int)a.size()) * 2) << endl;
	return 0;	
}
0