POJ3279 Fliptile


Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N grid (1 ≤ M ≤ 15; 1 ≤ N ≤ 15) of square tiles, each of which is colored black on one side and white on the other side.

工程伦理 第三章 作为方法的伦理理论

3.1 遭遇伦理困境


  • 存在两种或更多的道德责任、义务、权利、善、或一种价值理念与另一价值理念发生冲突
  • 在某一种特定的工程实践情形中,一种道德原则存在两种或两种以上不相容的应用方式
  • 人类生活本身的复杂性以及价值标准的多元化,使得工程实践的伦理困境常常具有一种不确定性,即我们往往不能在正确与错误、是与非之间进行抉择

POJ3276 Face The Right Way


Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing backward, though, and he needs them all to face forward to make his life perfect.

编译原理 第四章 自上而下语法分析

4.1 概述

语法分析的本质:是按文法的产生式,识别输入符号串是否为一个句子。即是否能从文法的开始符号出发推导出这 个输入串,或者建立一棵与输入串相匹配的语法分析树。

POJ2010 Moo University - Financial Aid


Bessie noted that although humans have many universities they can attend, cows have none. To remedy this problem, she and her fellow cows formed a new university called The University of Wisconsin-Farmside,"Moo U" for short.

priority_queue 的使用(C++)

能够完成下列操作的数据结构叫作:priority_queue ,即优先队列。

  • 插入一个数值
  • 去除最小(大)的数值(获得数值,并且删除)

POJ1064 Cable master


Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a "star" topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it.

编译原理 第三章 词法分析

3.1 词法分析器概述

3.1.1 词法分析器的功能



函数 lower_bound()firstlast 中的前闭后开区间进行二分查找,返回不小于 val 的第一个元素位置,如果所有元素都小于 val,则返回 last 位置。

POJ3320 Jessica's Reading Problem


Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she wants to pass it, she has to master all ideas included in a very thick text book. The author of that text book, like other authors, is extremely fussy about the ideas, thus some ideas are covered more than once. Jessica think if she managed to read each idea at least once, she can pass the exam. She decides to read only one contiguous part of the book which contains all ideas covered by the entire book. And of course, the sub-book should be as thin as possible.

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now