結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2019-05-30 15:13:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 567 ms |
コンパイル使用メモリ | 65,676 KB |
実行使用メモリ | 8,192 KB |
最終ジャッジ日時 | 2024-09-17 16:07:31 |
合計ジャッジ時間 | 2,442 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 9 |
ソースコード
#include <iostream> #include <set> #include <algorithm> using namespace std; int main() { int n; cin >> n; set<int> st; for (int i=0; i<n; i++) { int t; cin >> t; st.insert(t); } cout << max(0, (int)(st.size()-(n-st.size()))) << endl; return 0; }