码迷,mamicode.com
首页 >  
搜索关键字:does not match    ( 7565个结果
在python中扩展c语言模块
有一个以前写的c语言代码,我想把它用在python程序中。我先是看了《python基础教程》一书中的方法,书中说可以用swig加python内置distutils模块的方法来实现。我照着书上的步骤试了试,结果在导入模块的时候总是提示“ImportError: dynamic module does not define init function (initprintf)”。起初我以为是so文...
分类:编程语言   时间:2014-08-16 16:32:30    阅读次数:304
Roadblocks http://poj.org/problem?id=3255
DescriptionBessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home ...
分类:数据库   时间:2014-08-16 11:08:00    阅读次数:268
C#验证邮件
public static bool IsEmail(string email){ String strExp = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"; Regex r = new Regex(strExp); Match ...
分类:其他好文   时间:2014-08-16 11:03:20    阅读次数:190
hdu 1498 50 years, 50 colors
题目链接 1 #include 2 #include 3 4 short G[101][101]; 5 bool vis[101]; 6 short match[101]; 7 short n; 8 9 bool dfs(short x, short c)10 {11 int i;1...
分类:其他好文   时间:2014-08-15 23:47:59    阅读次数:275
执行git命令出现 xcrun: error:
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change执行 sudo xcode-select -swi...
分类:其他好文   时间:2014-08-15 19:32:09    阅读次数:216
powershell 查看程序的tcp网络连接
在运维工作中,经常查看某个业务的网络连接状况,在这里借用netstat来实现查找连接,用hash特性避免重复。$add=@{} while(1){ ps|?{$_.path -match 'E:\\games\\梦幻XX}|%{ $id=$_.id netstat -ano | ForEach-Object { $i = $_ | Select-Object -Proper...
分类:其他好文   时间:2014-08-15 16:06:58    阅读次数:201
HDU 3416 Marriage Match IV(spfa+最大流)
题目的大体意思是:给你一些有向边让你求出给出的点s,t之间最短路的条数。 两边spfa从s到t,和从t到s然后求出在最短路上的点建一条容量为1的边,然后求出s到t的最大的流量,就是最短路的数目。 PS:代码写的姿势不够优美。 Marriage Match IV Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768...
分类:其他好文   时间:2014-08-15 16:05:49    阅读次数:336
HDU4952:Number Transformation
Problem Description Teacher Mai has an integer x. He does the following operations k times. In the i-th operation, x becomes the least integer no less than x, which is the multiple of i. He w...
分类:其他好文   时间:2014-08-15 14:41:45    阅读次数:165
JS取地址栏参数的两种方法
第一种方法:function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg)...
分类:Web程序   时间:2014-08-15 14:17:38    阅读次数:254
HDU 3277 Marriage Match III(拆点+二分+最大流SAP)
这个题目是说,有n个女的和男的找伴侣。然后女的具有主动选择权,每个女的可以选自己喜欢的男的,也可以挑选k个不喜欢的男的,做法就是:把女的拆点,u1->u2建立一条容量为k的边。如果遇见喜欢的男生i->j+2*n建一条容量为1的边,否则i+n->j+2*n建一条容量为1的边。最后将源点和女生相连容量为mid,汇点与男生相连容量为mid。枚举mid,看是否会产生满流。 可能姿势不够优美dinic超时...
分类:其他好文   时间:2014-08-15 09:29:48    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!