题目:http://poj.org/problem?id=3044题意:以坐标的形式给出一张图,表示一些楼房的正视图,求出楼房的最少个数。分析:和小学常做的立方体问题很像,很容易想到一个贪心方法,那就是尽量把矮的楼房放在高的楼房的前面,即连续的等高的一些"X"我们把它视为一座楼房。
具体的做法...
分类:
其他好文 时间:
2014-07-22 23:09:12
阅读次数:
373
This is a two player game. Initially there
areninteger numbers in an array and playersAandBget chance to take them
alternatively. Each player can take...
分类:
其他好文 时间:
2014-04-30 20:34:38
阅读次数:
519
真的越来越喜欢web前端了。 本来一直觉得
游戏开发是个很高深的话题,虽然之前也会写点动态的网页,运动的对象,跳动的小球之类的简单动画,直到我遇到了JavaScript,jquery库。其实,最开始学习
JavaScript,感觉这是一门杂乱无章的弱语言,没有 C 和 C++ 或者 Java ...
分类:
其他好文 时间:
2014-04-30 16:30:06
阅读次数:
543
Problem D: Airport ExpressIn a small city
called Iokh, a train service,Airport-Express, takes residents to the airport
more quickly than other transpo...
分类:
其他好文 时间:
2014-04-30 13:53:23
阅读次数:
347
2014-04-28
22:05题目:写个程序判断三连棋哪一方赢了。解法:三个相同的棋子连成一条横线,竖线或者对角线就判断为赢了。代码: 1 // 17.2 Write an
algorithm to check if someone has won the tic-tac-toe game. 2 ...
分类:
其他好文 时间:
2014-04-29 18:12:07
阅读次数:
474
Stone Game, Why are you always there?Time Limit:
2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total
Submission(s): 393Accepted S...
分类:
其他好文 时间:
2014-04-29 17:23:45
阅读次数:
444
Barnyard game -- People will often avoid
conceptualization, or at least avoid publicizing the output because expression
of new ideas sometimes makes y...
分类:
其他好文 时间:
2014-04-29 17:12:24
阅读次数:
501
网络游戏(联网进行的多人电子游戏)网络游戏:英文名称为Online Game,又称
“在线游戏”,简称“网游”。指以互联网为传输媒介,以游戏运营商服务器和用户计算机为处理终端,以游戏客户端软件为信息交互窗口的旨在实现娱乐、休闲、交流和取得虚拟成就的具有可持续性的个体性多人在线游戏。定义魔兽世界
网络...
分类:
其他好文 时间:
2014-04-29 16:34:22
阅读次数:
467
April Fools Day Contest
2014A、C、H三道题目===================================================================A.
The Great Game这题怎没看懂。。看了官方题解真是恍然大悟啊,原来是石头剪刀...
分类:
其他好文 时间:
2014-04-29 09:24:46
阅读次数:
404
The blocks in the city of Fishburg are of square form. N avenues running south to north and Mstreets running east to west bound them. A helicopter took off in the most southwestern
crossroads and fl...
分类:
其他好文 时间:
2014-04-27 21:16:59
阅读次数:
255