上一页 1 ··· 15 16 17 18 19

2013年1月13日

USACO1.2.2--Transformations

摘要: TransformationsA square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformation that has been applied to the original pattern given the following list of possible transformation 阅读全文

posted @ 2013-01-13 20:31 仗剑奔走天涯 阅读(204) 评论(0) 推荐(0) 编辑

2013年1月11日

USACO1.2.1--Milking Cows

摘要: Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at time 1000. The second farmer begins at time 700 and ends at time 1200. The third farmer begins at time 1500 a 阅读全文

posted @ 2013-01-11 16:27 仗剑奔走天涯 阅读(147) 评论(0) 推荐(0) 编辑

2013年1月10日

寒假学习计划

摘要: 先把几本能快速阅读完的书看完。以下是书单:1、《Linux/ Unix设计思想》(已看完90页)2、《数学之美》(已经看完50页)3、《如何阅读一本书》(重新看一遍)4、《把时间当作朋友》5、《怎样解题》6.《C和指针》(已看完12章)看完以上书籍接下来的任务就是每天看《离散数学及其应用》和《数据结构与算法分析》,虽然觉得数据结构等学完离散数学学比较好,但是出于某些原因,还是同时学好了。时间分配大概是这样的:上午搞离散,下午撸数据结构,晚上去USACO撸两个题。顺便看看《鸟哥的Linux私房菜》,熟悉一下Linux下的各种操作。基本就这样安排的,吼吼,努力搞!!! 阅读全文

posted @ 2013-01-10 19:26 仗剑奔走天涯 阅读(143) 评论(0) 推荐(0) 编辑

2013年1月9日

USACO1.2.3--Name That Number

摘要: Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't appreciate the advantage of this filing system, though, and wish to call the members of their herd by a pleasing name rather than 阅读全文

posted @ 2013-01-09 16:26 仗剑奔走天涯 阅读(166) 评论(0) 推荐(0) 编辑

USACO1.2.5--Dual Palindromes

摘要: Dual PalindromesMario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a palindrome; the number 77778 is not. Of course, palindromes have neither leading nor trailing zeroes, so 阅读全文

posted @ 2013-01-09 10:28 仗剑奔走天涯 阅读(201) 评论(0) 推荐(0) 编辑

2013年1月8日

USACO1.2.4--Palindromic Squares

摘要: Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10), print all the integers N (1 <= N <= 300 base 10) such that the square of N is palindromic when expressed 阅读全文

posted @ 2013-01-08 22:34 仗剑奔走天涯 阅读(216) 评论(0) 推荐(0) 编辑

USACO1.1.4--Broken Necklace

摘要: Broken NecklaceYou have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for n=29: 1 2 1 2 r b b r b r r b r... 阅读全文

posted @ 2013-01-08 15:56 仗剑奔走天涯 阅读(240) 评论(0) 推荐(0) 编辑

USACO1.1.3--Friday the Thirteenth

摘要: Friday the ThirteenthIs Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, write a program that will compute the frequency that the 13th of each month lands on Sunday, Monday, Tuesday, We 阅读全文

posted @ 2013-01-08 10:59 仗剑奔走天涯 阅读(175) 评论(0) 推荐(0) 编辑

2013年1月7日

USACO1.1.2--Greedy Gift Givers

摘要: Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the other friends. Likewise, each friend might or might not receive money from any or all of the other friends. Your 阅读全文

posted @ 2013-01-07 23:35 仗剑奔走天涯 阅读(194) 评论(0) 推荐(0) 编辑

2012年12月18日

USACO1.1.1--Your Ride Is Here

摘要: Your Ride Is HereIt is a well-known fact that behind every good comet is a UFO. These UFOs often come to collect loyal supporters from here on Earth. Unfortunately, they only have room to pick up one group of followers on each trip. They do, however, let the groups know ahead of time which will be p 阅读全文

posted @ 2012-12-18 11:38 仗剑奔走天涯 阅读(203) 评论(0) 推荐(0) 编辑

2012年12月14日

可视化的数据结构和算法

摘要: 这东西不错,以后可以看看。via: http://coolshell.cn/articles/4671.html 基础 Stack栈: 数组实现 http://www.cs.usfca.edu/~galles/visualization/StackArray.html Stack栈: 链表实现 http://www.cs.usfca.edu/~galles/visualization/StackLL.html Queues队列: 数组实现 http://www.cs.usfca.edu/~galles/visualization/QueueArray.html Queues队列: 链... 阅读全文

posted @ 2012-12-14 17:54 仗剑奔走天涯 阅读(379) 评论(1) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19

导航