题意:给定4*4的矩形 由16个矩形组成 上面由w或b 组成 背面相反 每次能翻转3到5个小矩形
求最少的步数能使矩形全部为w或全部为b思路:有固定的2^16次方个状态 也就是矩形的子集的个数 枚举所有的状态就可以了#includeusing
namespace std;int arr[26];i....
分类:
其他好文 时间:
2014-05-21 21:00:53
阅读次数:
292
using System;using System.Collections.Generic;using
System.Linq;using System.Runtime.InteropServices;using System.Text;namespace
Common{ public cla...
分类:
数据库 时间:
2014-05-21 20:41:53
阅读次数:
333
上篇话说是串口方式操作RFID设备。 下面介绍网络协议方式。 设备支持断线重连。
那我们的服务也不能差了不是。 所以这个服务类也是支持的哦。不解释上代码:namespace Rfid{ /// /// 获取Vip数据 /// ///
public delegate...
DescriptionA network administrator manages a
large network. The network consists of N computers and M links between pairs of
computers. Any pair of co...
分类:
Web程序 时间:
2014-05-21 20:23:55
阅读次数:
419
题目链接题意 :给出一幅不完全的纸牌.算出哪些牌丢失了.思路 : 算是背包一个吧。if
f[j]>0 f[j+a[i]] += f[j];然后在记录一下路径。 1 //1244 2 #include 3 #include 4 #include
5 6 using namespace std ...
分类:
其他好文 时间:
2014-05-21 20:19:58
阅读次数:
339
#include #define N 8using namespace std;int main(){
int a[N]={1,-1,2,-3,4,-5,6,-7}; int lis[N]; int result[N];//结果 for(int i=0;i
a[j] && lis[i] =0;t--...
分类:
其他好文 时间:
2014-05-21 19:51:31
阅读次数:
351
http://acm.hdu.edu.cn/showproblem.php?pid=1358求某个前缀的周期,用Next求循环节的题目#include
#include #include #include using namespace std ;char B[1000005] ;int Next[...
分类:
其他好文 时间:
2014-05-21 19:23:01
阅读次数:
241
#include "stdafx.h"#include #include #pragma
comment(lib,"ws2_32.lib")using namespace std;int main(int argc, char* argv[]){
WSADATA wsaData; int...
1 #include 2 #include 3 #include 4 #include 5
#include 6 #include 7 #include 8 9 #define maxx 1<<2110 using namespace
std;11 12 int mat[22][22],n,dp.....
分类:
其他好文 时间:
2014-05-21 19:00:25
阅读次数:
197
using System;using
System.Runtime.InteropServices;namespace FastReboot{ static class Program {
private delegate uint ZwShutdownSystem(int...
分类:
其他好文 时间:
2014-05-21 17:18:09
阅读次数:
391