Sweety

Practice makes perfect

导航

2016年5月4日

摘要: #include#include#include#includeusing namespace std;struct node{ long long S; long long P; double q;}a[3];bool cmp(node a,node b){ retur... 阅读全文

posted @ 2016-05-04 15:16 蓝空 阅读(100) 评论(0) 推荐(0) 编辑

摘要: #include#include#includeusing namespace std;int dir[4][2]={{-1,0},{1,0},{0,-1},{0,1}};int main(){ int T; int N,M; int s[25][25]; int v... 阅读全文

posted @ 2016-05-04 15:14 蓝空 阅读(129) 评论(0) 推荐(0) 编辑

摘要: #include#include#include#includeusing namespace std;char str[12345];char str1[12345];char str2[12345];char num1[12345];char num2[12345];char num3[... 阅读全文

posted @ 2016-05-04 15:13 蓝空 阅读(165) 评论(0) 推荐(0) 编辑

摘要: #include #include #include #include #define MAX 500 using namespace std; int main (){ char temp1[MAX],temp2[MAX],str[MAX]; strcpy(te... 阅读全文

posted @ 2016-05-04 15:12 蓝空 阅读(126) 评论(0) 推荐(0) 编辑

摘要: #include #include #include using namespace std; int main() { int T; scanf("%d",&T); int i; for(i=1;i=b) ... 阅读全文

posted @ 2016-05-04 15:11 蓝空 阅读(118) 评论(0) 推荐(0) 编辑

摘要: http://www.sdutacm.org/sdutoj/showproblem.php?pid=2414&cid=1744 最小费用最大流,开始ps用贪心,每次找出最大高度或者最小高度的插入,然后如果最大高度的能插入则插最大的,否则就插小的,(注意插入时候需要贪心两步)感觉是可以的,但... 阅读全文

posted @ 2016-05-04 15:09 蓝空 阅读(158) 评论(0) 推荐(0) 编辑

摘要: http://www.sdutacm.org/sdutoj/problem.php?action=showproblem&problemid=2412 题意:一个切水果游戏。每秒出现一些水果,它们都在一条线上,有好水果和坏水果,好的可以加分,坏的减分,每次连续切好水果三个以上可以分数加倍。... 阅读全文

posted @ 2016-05-04 15:04 蓝空 阅读(165) 评论(0) 推荐(0) 编辑

摘要: http://www.sdutacm.org/sdutoj/problem.php?action=showproblem&problemid=2410 只要是第一行确定了,全部棋局也就确定了,dfs搜索第一行的情况,然后后面的直接根据上一行而定,这样最后就能得出整个矩阵了,第一行最多20个,... 阅读全文

posted @ 2016-05-04 15:03 蓝空 阅读(130) 评论(0) 推荐(0) 编辑