该文被密码保护。 阅读全文
摘要:
```cpp include include using namespace std; const int maxx=100500; int m=150000,ans[maxx],c[maxx],n; struct data { int x,y; }a[maxx]; int bow(int x) { 阅读全文
摘要:
```cpp include include include using namespace std; define tcl(a,b,c) for(a=b;a n m k; tcl(i,1,n) { f[i]=i; } tcl(i,1,m) { cin a[i].x a[i].y a[i].dis; 阅读全文
摘要:
```cpp include include include using namespace std; define tcl(a,b,c) for(a=b;a N P; tcl(i,1,N) { cin ti[i]; mins=min(ti[i],mins); } tcl(i,1,N) { f[i] 阅读全文
摘要:
```cpp include include include using namespace std; const int dx[4]={0,1,0, 1}; const int dy[4]={1,0, 1,0};//四个方向 int x,y; int tot=1,sum[10001]={0},an 阅读全文
摘要:
```cpp include include include include using namespace std; const int maxx=1000001;// 最小生成树的这个东西一定不要开小了... int tot=1,x[maxx],y[maxx]; double ans=0;//注 阅读全文
摘要:
背下来( 阅读全文
摘要:
第一题 蛇形数字三角形 考试的时候因为智障%5d后面还加了个空格然后就爆0了.... 阅读全文
摘要:
拿到本题的第一想法就是暴力枚举,这种方法肯定是可做的。具体能那多少分的话...就看数据心情了。 cpp include include using namespace std; int n,a,aa,b,bb,i,j,d,dd; int gcd(int x,int y) { if(x%y==0) r 阅读全文
摘要:
01背包 P2871 手链Charm Bracelet cpp include include using namespace std; define tcl(a,b,c) for(a=b;a=c;a ) const int maxx=100001; int w[maxx],v[maxx],f[ma 阅读全文