这题是上一题的升级版关键在于条形图的构造,逐行处理输入的矩阵,遇到'F'则在上一次的条形图基础上再加1,遇到'R'则置为0然后用上一题的算法,求每行对应条形图的最大矩阵的面积。另外:本来是debug都不用就1A的节奏。可在输入数据上,一开始我用的是scanf读入字符 和 getchar跳过无效字符,...
分类:
其他好文 时间:
2014-07-29 21:18:22
阅读次数:
280
Switch Game
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10590 Accepted Submission(s): 6446
Problem Description
There are many la...
分类:
其他好文 时间:
2014-07-29 17:52:02
阅读次数:
203
1. 程序load到内存。2. 找到程序入口方法(main())开始执行。3. 程序在内存中的存放 3.1 代码段(code segment)--------存放代码 3.2 数据段(data segment)--------存放静态变量,字符串常量 3.3 栈(stack) -...
分类:
编程语言 时间:
2014-07-29 17:34:52
阅读次数:
238
King Robert has 7 kingdoms under his rule. He gets to know from a raven that the Dothraki are going to wage a war against him soon. But, he knows the ...
分类:
其他好文 时间:
2014-07-29 17:18:52
阅读次数:
211
The Settlers of Catan Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements...
分类:
其他好文 时间:
2014-07-29 16:57:12
阅读次数:
253
进程中内存的布局
参见:http://patmusing.blog.163.com/blog/static/135834960201001512358686/
常量区只读不可写。
静态区可读写。
示例
//所有代码,在Code segment
//在Global data segment,const只是个语法标识,不放Constant segment
const double...
分类:
编程语言 时间:
2014-07-29 15:11:37
阅读次数:
235
Problem Description
Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:
其他好文 时间:
2014-07-29 15:03:28
阅读次数:
248
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 30449
Accepted: 13232
Description
Flip game is played on a rectangular 4x4 field with two-sided p...
分类:
其他好文 时间:
2014-07-29 14:33:28
阅读次数:
225
在oc中我们通过-(CardMatchingGame *)game{ if(!_game) _game=[[CardMatchingGame alloc] initWithCardCount:[self.cardButtons count] usingDeck:[self createDeck...
分类:
其他好文 时间:
2014-07-29 14:09:28
阅读次数:
173
http://poj.org/problem?id=1753
因为目标状态是全白或全黑,所以进行两次高斯消元,每次若有自由变元的话要枚举自由变元求得最优解。
哇哦,怎么就写了200+行。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#incl...
分类:
其他好文 时间:
2014-07-29 13:06:27
阅读次数:
206