delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

27
7.3263.cpp Normal file
View File

@ -0,0 +1,27 @@
#include<cstdio>
#include<algorithm>
#include<set>
using namespace std;
int n,p,h,m,d[10005];
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
scanf("%d%d%d%d",&n,&p,&h,&m);
set<pair<int,int> > st;
for(int i=0;i<m;i++)
{
int L,R; scanf("%d%d",&L,&R);
if(L>R) swap(L,R);
if(st.find(make_pair(L,R))!=st.end()) continue;
st.insert(make_pair(L,R));
d[L+1]--; d[R]++;
}
for(int i=1;i<=n;i++)
{
d[i]+=d[i-1];
printf("%d\n",d[i]+h);
}
return 0;
}