- 博客(7)
- 收藏
- 关注
原创 市赛B题,差分约束系统
#include #include #include #include #include #include #include #include #include #include #include using namespace std; struct node { int y,s,next; }edge[20005]; int cnt,pre[20005],sum[20005],dis[
2017-04-27 18:08:22 475
原创 2016年第七届山东省ACM省赛题解
1. http://paste.ubuntu.com/24355497/ 2. http://paste.ubuntu.com/24355502/ 3. http://paste.ubuntu.com/24355485/ 4. http://paste.ubuntu.com/24355513/ 5. http://paste.ubuntu.com
2017-04-11 00:41:44 1210
原创 sdut 3567 模拟
#include #include #include #include #include using namespace std; struct node { int l,r; string ss; }str[20005]; char tp[20005],s[20005],c; int cnt,pos,t; void init() { c=cnt=pos=0; me
2017-04-10 13:38:03 219
原创 sdut 2610 超级坑,但也超级巧妙地减枝
#include #include #include using namespace std; int n,m,help[4][2]={1,0,0,1,0,-1,-1,0}; int a[20][20],map_s[20][20]; bool check(int x,int y,int i) { int xx=x+help[i][0],yy=y+help[i][1]; if(xx>
2017-04-04 16:28:27 152
原创 hdu 2604 矩阵快速幂
#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define Matr 10 struct mat { ll a[Matr][Matr],size; mat()
2017-04-01 22:57:50 218
原创 acm感想
一年了,整整在acm摸爬滚打了一年,说实在话,现在就感觉自己是个智障,白打了一年,新生上来都比我强,代码写成了XX,说来可笑,和一年前校赛神奇的相似,每逢校赛必定出问题,感觉像吃了屎一样难受,大晚上一直在做题,感觉这样子才能让自己能够获得片刻安宁。一旦停下来就满满的都是对自己的质疑和否定,真心很扎心。打了这么久,这是最恶心的一次,没有之一,未来不敢说,但是我觉得比这个更恶心的可能也没有了,说半天什
2017-04-01 01:46:36 299
原创 sdut 3867
#include #include using namespace std; int main() { int n,m,x1,x2,y1,y2; while(scanf("%d%d%d%d%d%d",&n,&m,&x1,&y1,&x2,&y2)!=EOF) if(n*m%2) if(!(((int)abs(abs(x1-x2)-abs(y1-
2017-04-01 01:35:44 195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人