@[ffr25](/user/1338385) [洛谷 Markdown 格式手册-代码块](https://help.luogu.com.cn/rules/academic/handbook/markdown#%E4%BB%A3%E7%A0%81%E5%9D%97) 看一下。
@[ffr25](/user/1338385) 互关!!!互关!!!互关!!!互关!!!
by ptsxlhs @ 2024-05-11 14:52:04
```
#include <bits/stdc++.h>
using namespace std;
int f[20001],a[1001];
int main()
{
int n,sum=0;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a[i];
f[a[i]]++;
}
for(int i=1;i<=n;i++)
for(int j=i+1;j<=n;j++)
if(f[a[i]+a[j]]>=1)
{
sum++;
f[a[i]+a[j]]=0;
}
cout<<sum;
return 0;
}
```
by duzichen @ 2024-06-02 16:07:40
比如说这样
by duzichen @ 2024-06-02 16:08:42
点右上角</>这个图标,把要粘的代码粘上来
像这样
```
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout<<"这不就行了?";
return 0;
}
```
by AAAuc03 @ 2024-06-22 20:49:21