Problem Description
After repeated attempts, LL finds the greedy strategy is very awful in practice. Even there is no apparent evidence to proof it is better than a random one. So he has to drop th...
分类:
其他好文 时间:
2014-09-02 12:29:04
阅读次数:
226
Expression in parentheses(), square bracket[], and curly braces{}can span multiple lines.A backslash (\) at the end of the line denotes continuation t...
分类:
编程语言 时间:
2014-09-02 05:51:34
阅读次数:
238
题目:计算一个数是不是17的倍数。
说明:字符串,大数。简单题,直接判断即可。
设 n = 10a + d;(0 ≤ d ≤ 9)则
a - 5d = 51a - 5n,如果n被17整除,这个数必然也被17整除。
说明:题目给了个结论,不需要用,直接%17判断余数即可。
#include
#include
#include
#incl...
分类:
其他好文 时间:
2014-09-01 10:49:03
阅读次数:
143
//构建队列#includeusing namespace std;struct queuenode{int data;queuenode* next;};class queue{private:queuenode* head;public:queue(){head=new queuenode;he...
分类:
编程语言 时间:
2014-09-01 10:29:32
阅读次数:
205
ALV的颜色设置分为3种:行、列、单元格。1.列颜色的设置在slis_t_fieldcat_alv-emphasize中,写入需要的颜色代码。Eg:DATA: fc TYPE slis_t_fieldcat_alv WITH HEADER LINE.fc-tabname= 'ITAB'.fc-fie...
分类:
其他好文 时间:
2014-09-01 01:37:52
阅读次数:
289
Gargari got bored to play with the bishops and now, after solving the problem about them, he is trying to do math homework. In a math book he have found
k permutations. Each of them consists of numbe...
分类:
其他好文 时间:
2014-09-01 00:28:22
阅读次数:
328
今天开始在maven项目下加入spring。边学习边截图。在这个过程中我新建了一个hellospring的项目。于是乎从这个项目出发开始研究如何在maven项目中使用spring。鉴于网上的学习资料都是spring与jsp的整合。所以在这里我也使用spring+jsp。从一个新建的maven项目he...
分类:
编程语言 时间:
2014-08-31 17:03:01
阅读次数:
266
BUILD-MAX-HEAP'(A) heap-size[A]<-1 for i <- 2 to length[A] do MAX-HEAP-INSERT(A, A[i])如上,题目给出一种使用插入的办法建堆的算法,而书中6.4节给出的建堆算法如下:BUILD-MAX-HE...
分类:
其他好文 时间:
2014-08-31 10:25:01
阅读次数:
195
Caisa is going to have a party and he needs to buy the ingredients for a big chocolate cake. For that he is going to the biggest supermarket in town.
Unfortunately, he has just s dollars for sugar. B...
分类:
其他好文 时间:
2014-08-30 21:47:30
阅读次数:
255
Caisa solved the problem with the sugar and now he is on the way back to home.
Caisa is playing a mobile game during his path. There are
(n?+?1) pylons numbered from 0 to
n in this game. The py...
分类:
其他好文 时间:
2014-08-30 21:46:50
阅读次数:
315