#includeusing namespace std;//当前检测的行列 是否 符合条件 //从1行1列开始 bool check(int row,int col,int *list){ for(int i=1;i=1) { array[k]=array[k]+1;//检...
分类:
其他好文 时间:
2014-10-12 16:22:18
阅读次数:
162
内部样式表的优先级为1000,id选择器优先级为100,class选择器为10,标签为1。
例如:
情形一:div.test1 .span a 优先级 1+10 +10 +1
情形二:span#xxx .songs li 优先级1+100 + 10 + 1
情形三:#xxx li 优先级 100 +1
直接上代码:
Document
div .aa{col...
分类:
Web程序 时间:
2014-10-12 09:59:07
阅读次数:
199
1.CSS hack的技巧!important除IE6外都识别,通用:background-color:blue; /*所有浏览器*/background-color:red\9;/*所有的ie*/background-color:yellow\0; /* ie8+*/*background-col...
分类:
Web程序 时间:
2014-10-10 20:44:44
阅读次数:
222
//处理时间部分,将ISODate("2014-10-09T18: 37: 50.0Z") 转换成 2014-10-09 18:37:50这种格式
//最多处理6层树形结构数据,当多维数组中的key,包含数组$product_date_col中的任意一个字符,那么就会被处理。
public static function processMongoGetDate($product){
for...
分类:
数据库 时间:
2014-10-10 20:36:14
阅读次数:
434
MySQL之外键约束MySQL有两种常用的引擎类型:MyISAM和InnoDB。目前只有InnoDB引擎类型支持外键约束。InnoDB中外键约束定义的语法如下:[CONSTRAINT [symbol]] FOREIGN KEY [index_name] (index_col_name, ...) R...
分类:
数据库 时间:
2014-10-10 16:04:12
阅读次数:
266
题意:一些机枪彼此不能在同一行和同一列,但是由于有墙的阻隔,能保证子弹无法穿透,即可以同行同列,现问如果说给了一个n*n(n#include using namespace std;int n,best;char map[4][4];int canput(int row,int col){ int....
分类:
其他好文 时间:
2014-10-09 22:10:47
阅读次数:
233
搞了半天 写了一个算法,希望能帮到需要的朋友效果如下水电费用是由 就是部门水费和电费累加的,而部门水费由科室水费累加起来的表结构DataTable dt = new DataTable();dt.Columns.Add("pid");dt.Columns.Add("fatherid");dt.Col...
分类:
其他好文 时间:
2014-10-09 19:35:27
阅读次数:
258
A题:因为数据量太小,所以直接暴力替换就好。。。。
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;
int arr[100010];
int cnt[100010];
int col[100010];
int n,a,b;
char c;
...
分类:
其他好文 时间:
2014-10-09 02:46:29
阅读次数:
232
%%%%% motion blur
clc;
clear all;
close all;
Image=imread('4.jpg');
Image=ouble(Image);
theta=pi/4;
len=20;
row=floor(len*sin(theta))+1;
col=floor(len*cos(theta))+1;
motion_f1(1:row,1:c...
分类:
其他好文 时间:
2014-10-08 16:02:05
阅读次数:
237
che用于定义复选框水平排列时选中后的样式che-icon用于定义复选框选中或未选中时使用的图标,根据复选框的状态定义选中或着未选中的图标(垂直排列)col跟复选框选中状态搭配着使用,定义列表展开时的圆角变化col-icon定义折叠列表展开或者关闭时列表上图标的变换col-c默认情况下:col-c定...
分类:
移动开发 时间:
2014-10-08 13:09:05
阅读次数:
369