上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 动态逼近 阅读全文
posted @ 2018-08-23 14:06 myyismyy 阅读(125) 评论(0) 推荐(0)
摘要: In this problem, `lattice points' in the plane are points with integer coordinates. In order to contain his cows, Farmer John constructs a triangular 阅读全文
posted @ 2018-08-12 20:02 myyismyy 阅读(313) 评论(0) 推荐(0)
摘要: template <class T> void read(T& x) { char ch = gc(); x = 0; bool f = 1; while (!('0' <= ch && ch <= '9') && ch != '-') ch = gc(); if (ch == '-') f = 0 阅读全文
posted @ 2018-08-12 19:05 myyismyy 阅读(111) 评论(0) 推荐(0)
摘要: Problem Description 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有 阅读全文
posted @ 2018-07-30 15:09 myyismyy 阅读(115) 评论(0) 推荐(0)
摘要: 将若干个长度不同的木棍,分成A堆和B堆,并且保证A堆所有木棍的长度之和等于B堆所有木棍的长度之和。 输入 输入数据有多组。 每组测试数据第一行为一个正整数n(n<=100),代表总的木棍个数; 第二行为n个以空格隔开的正整数ci(ci<=100)。 输出 如果n根木棍可以分成两堆木棍(A堆和B堆), 阅读全文
posted @ 2018-06-09 15:44 myyismyy 阅读(264) 评论(0) 推荐(0)
摘要: 随机生成一个序列从前往后寻找5个数ai是否满足a1<a2<a3<a4<a5 阅读全文
posted @ 2018-06-03 21:37 myyismyy 阅读(136) 评论(0) 推荐(0)
摘要: KMP:字符串匹配。给你两个字符串,寻找其中一个字符串是否包含另一个字符串,如果包含,返回包含的起始位置。 阅读全文
posted @ 2018-05-27 22:09 myyismyy 阅读(145) 评论(0) 推荐(0)
摘要: 递归函数,逐步递进 最大回文子串 阅读全文
posted @ 2018-05-27 21:53 myyismyy 阅读(216) 评论(0) 推荐(0)
摘要: 描述 There are two circles on the plane. Now you must to calculate the area which they cover the plane. For example, in Figure 1, the area of the red re 阅读全文
posted @ 2018-05-13 00:21 myyismyy 阅读(271) 评论(0) 推荐(0)
摘要: 描述 H1N1 like to solve acm problems.But they are very busy, one day they meet a problem. Given three intergers a,b,c, the task is to compute a^(b^c))17 阅读全文
posted @ 2018-05-06 20:48 myyismyy 阅读(159) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页