码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
poj 1753
题意:给定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
C#:向SqlServer数据库中插入imange类型
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
C# RFID windows 服务 网络协议方式
上篇话说是串口方式操作RFID设备。 下面介绍网络协议方式。 设备支持断线重连。 那我们的服务也不能差了不是。 所以这个服务类也是支持的哦。不解释上代码:namespace Rfid{ /// /// 获取Vip数据 /// /// public delegate...
分类:Windows程序   时间:2014-05-21 20:38:45    阅读次数:474
poj 3694 Network
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
URAL 1244. Gentlemen (DP)
题目链接题意 :给出一幅不完全的纸牌.算出哪些牌丢失了.思路 : 算是背包一个吧。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
HDU 1358
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
Winsock 示例
#include "stdafx.h"#include #include #pragma comment(lib,"ws2_32.lib")using namespace std;int main(int argc, char* argv[]){ WSADATA wsaData; int...
分类:Windows程序   时间:2014-05-21 19:01:01    阅读次数:476
hdu 1565
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
C# 实现快速闪电关机、快速重启
using System;using System.Runtime.InteropServices;namespace FastReboot{ static class Program { private delegate uint ZwShutdownSystem(int...
分类:其他好文   时间:2014-05-21 17:18:09    阅读次数:391
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!