結果
| 問題 |
No.2851 Make Pairs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-25 15:18:40 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 193 bytes |
| コンパイル時間 | 1,835 ms |
| コンパイル使用メモリ | 192,912 KB |
| 最終ジャッジ日時 | 2025-02-24 01:25:04 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,a,ans=0;
cin>>n;
vector<int>v(n+1,0);
for(int i=0;i<n;i++){
cin>>a;
v[a]++;
if(v[a]==2)ans++;
}
cout<<ans<<endl;
}