摘要: 源代码: #include<cstdio> #include<cstring> #include<queue> using namespace std; struct Node { int S,To,Next; }Edge[20001]; deque <int> Q; int n,m1,m2,Num 阅读全文
posted @ 2016-11-09 20:44 前前前世。 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 在某个国家,若想当上国王,须解决以下问题: 已知一个序列A1、A2、······、An,给定其若干子序列以及对该子序列的约束条件,例如: Asi、Asi+1、Asi+2、······、Asi+ni,且Asi+Asi+1+Asi+2+······+Asi+ni </> ki。 现询问是否 阅读全文
posted @ 2016-11-09 20:38 前前前世。 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 源代码: #include #include #include #include #define INF 10000007 using namespace std; struct Node { int X,Y; }i[6][37]; string S; queue Q; int n,k,Sum[6]={0}; int Prime1[6]={13,11,7,5,3,2}; in... 阅读全文
posted @ 2016-11-09 18:14 前前前世。 阅读(464) 评论(0) 推荐(0) 编辑