本文图片转自腾讯文化:www.cal.qq.com 1.Abstract 记忆中的家,深情刻画。 2.Content 图1 图2 图3 图4 图5 图6 图7 图8 图9 图10 图10 图11 图12 3.Conclusion 我的家,依水而傍,虽不富裕,但大自然丝毫也没有吝惜对我的美的给予;我的...
分类:
其他好文 时间:
2014-12-25 21:51:48
阅读次数:
255
http://acm.hdu.edu.cn/showproblem.php?pid=5148
Problem Description
Long long ago,there is a knight called JayYe.He lives in a small country.This country is made up of n cities connected by n-1...
分类:
其他好文 时间:
2014-12-21 11:33:39
阅读次数:
224
Knight Moves
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7012 Accepted Submission(s): 4238
Problem Description
A friend of you i...
分类:
其他好文 时间:
2014-12-17 09:13:29
阅读次数:
155
Problem AHashmat the brave warriorInput:standard inputOutput:standard outputHashmat is a brave warrior who with his group of young soldiers moves from...
分类:
编程语言 时间:
2014-12-14 17:00:29
阅读次数:
274
题目链接:点击打开链接
题意:
给定一张银行卡的n条记录:
val day.mon hour:min
表示这张卡在这个时间有一条交易。
输出n行,对于输出的第i行表示:根据前i件记录,可以推测出这张卡的最大透支额度是多少。
即:把前i个记录按时间排个序,跑一遍,输出过程中的最小值。
思路:
我们可以认为前i-1个事件已经有序,并且每个事件都有个过程最小值。
1、当插入第i个事件时...
分类:
其他好文 时间:
2014-12-09 15:39:21
阅读次数:
269
题目描述
Problem D: Knight's Trip
In chess, each move of a knight consists of moving by two squares horizontally and one square vertically, or by one square horizontally and two squares vertically....
分类:
其他好文 时间:
2014-12-09 14:03:08
阅读次数:
617
题目地址:1936. Knight Moves思路: 这道题一开始不理解题意…orz...囧,看大神们理解的。 题意是说一个8*8的国际象棋,骑士以马的形式走动(“日”字型),指定两个点,输出最小的步骤。 可以利用广度搜索解决。 具体代码如下: 1 #include 2 #include ...
分类:
其他好文 时间:
2014-12-09 12:08:21
阅读次数:
180
1 #include 2 using namespace std; 3 const int b[8][2]={{-2,-1},{-2,1},{-1,-2},{-1,2},{1,-2},{1,2},{2,-1},{2,1}}; 4 int a[30][30],p,q; 5 struct 6 { 7 ....
分类:
其他好文 时间:
2014-12-03 00:11:19
阅读次数:
149
Knight Moves
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 22204
Accepted: 10374
Description
Background
Mr Somurolov, fabulous chess-gamer indeed, asse...
分类:
其他好文 时间:
2014-11-25 16:32:44
阅读次数:
168
Knight Moves
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 11794
Accepted: 6646
Description
A friend of you is doing research on the Traveling Knight P...
分类:
其他好文 时间:
2014-11-21 23:23:02
阅读次数:
260