链接:http://www.patest.cn/contests/pat-a-practise/1004复习一下C 1 #include 2 #include 3 #include 4 #include 5 6 #define MAX_NODE 110 7 #define MAX_Q... Read More
posted @ 2015-07-25 04:31 ACSeed Views(137) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1009#include#include#include#include#includeusing namespace std;const int MAXN = 1000 + 10;const do... Read More
posted @ 2015-04-14 13:48 ACSeed Views(134) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1002这个题我能说我交了无数次吗? 坑, 系数是0 不能输出 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 cons... Read More
posted @ 2015-04-13 23:14 ACSeed Views(366) Comments(1) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1065偷懒了1 T = input()2 for i in xrange(1, T + 1): 3 a, b, c = map(long, raw_input().split())4 ... Read More
posted @ 2015-04-13 19:40 ACSeed Views(128) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1003最短路 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const int INF = 1000000000; ... Read More
posted @ 2015-04-13 13:33 ACSeed Views(186) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1092 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const int MAXN = 2000; 8 char s... Read More
posted @ 2015-04-13 10:24 ACSeed Views(189) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1093水题 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const int MAXN = 100000 + 5; ... Read More
posted @ 2015-04-13 10:06 ACSeed Views(209) Comments(0) Diggs(0)
我这个弱B一开始就认为对于一个数, 对半分肯定比其他的分配方案好,然后最终也没过对半分不一定是最好的分配方案,比如, 9 可能分成3个3比对半分好真不知道那些大牛是怎么思考问题的,我看了第一的代码,他枚举最终状态的最大值, 他是怎么思考问题的呢?下面这个我改的蔡的暴力代码, 加上了枚举每一种分法,目... Read More
posted @ 2015-04-13 00:57 ACSeed Views(309) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1005太水了点 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const char *english[] = { 8... Read More
posted @ 2015-04-11 01:17 ACSeed Views(182) Comments(0) Diggs(0)
题目地址:http://www.patest.cn/contests/pat-a-practise/1099单纯的数据结构题目想到中序遍历的BST是有序的, 中序插入数, 层序遍历输出就可以了,这个题目为什么是30分呢, 纳闷 1 #include 2 #include 3 #include 4 #... Read More
posted @ 2015-04-11 00:51 ACSeed Views(258) Comments(0) Diggs(0)