結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2018-12-24 12:25:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 1,667 ms |
コンパイル使用メモリ | 171,064 KB |
実行使用メモリ | 8,192 KB |
最終ジャッジ日時 | 2024-09-25 10:58:54 |
合計ジャッジ時間 | 3,445 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 9 |
ソースコード
#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; }