╮(╯▽╰)╭水题
相连的相同色块缩成点,和相邻的不同色块建边。
以每一个点为起点bfs,求最小答案。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll long long
#define...
分类:
其他好文 时间:
2014-05-07 08:15:59
阅读次数:
328
Paint the Grid Reloaded
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Leo has a grid with N rows and M columns. All cells are painted with either black or white initially.
Two cells A ...
分类:
其他好文 时间:
2014-05-07 07:28:35
阅读次数:
480
Paint the Grid Again
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Leo has a grid with N × N cells. He wants to paint each cell with a specific color (either black or white).
Leo has a...
分类:
其他好文 时间:
2014-05-07 06:56:10
阅读次数:
470
多个模块之间的关联(2)
先来看看父模块对孙模块的操作。
一、“省”模块对“客户”的操作。
1、在省模块中加入该省的客户数。与加入市的个数一样,只要配置“省”模块的附加字段就可以了,设置截图如下:
然后将 “客户单位计数”加到grid中。
2、前面有介绍过“省”对"市"的父模块的限定值的。即选...
分类:
其他好文 时间:
2014-05-07 04:40:49
阅读次数:
236
多个模块之间的关联(3)
一、“客户”模块对父模块字段的显示。和可以显示父模块的字段一样,也可以显示祖父模块的字段。设置如下:
上图中加入了一个省份名称的字段到“客户”的附加字段中,下面把他加入grid中。
下面展示一下各种导航模式。
下图为多导航值都有效的效果。
...
分类:
其他好文 时间:
2014-05-07 04:14:04
阅读次数:
320
比赛时候看完题目就觉得是拓扑排序,当时心里隐隐觉得跟相框叠加那个题有点相似的
然后wzy问我no solution 是什么情况,我就一直去想是不是构成了什么排列就一定是no solution
其实只用再参考相框叠加那个题往前想一丁点就够了,就是从最后涂的那一层开始往前找,每一次都必然有一行或一整列是一样的
每次按逆字母序删除这一行或列就是了。
拓扑排序的题总是类似而且简单的,找到关系,敲代...
分类:
其他好文 时间:
2014-05-07 03:29:38
阅读次数:
259
显示对话框窗口
1、创建Dialog1项目,在activity_main.xml文件中添加一个Button:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:l...
分类:
移动开发 时间:
2014-05-06 23:40:39
阅读次数:
551
dojox.layout.ExpandoPane大家都知道它的显示隐藏有一个toggle()方法,但是有的情况下需要动态的来控制显示隐藏,比如我想单击某几个按钮让它显示,某几个按钮让它隐藏,很显然这个方法就不能使用了。我查了一下它的源码dojo.provide("dojox.layout.ExpandoPane");
dojo.experim..
分类:
其他好文 时间:
2014-05-06 17:42:59
阅读次数:
648
html代码:@{ ViewBag.Title = "Index"; Layout =
"~/Views/Shared/_Index_Layout.cshtml";} GridView @{ Layout = null;}...
分类:
其他好文 时间:
2014-05-06 12:59:26
阅读次数:
384