码迷,mamicode.com
首页 >  
搜索关键字:zoj 3675 trim the n    ( 5415个结果
差分约束-zoj-2770
Burn the Linked Camp It is well known that, in the period of The Three Empires, Liu Bei, the emperor of the Shu Empire, was defeated by Lu Xun, a general of the Wu Empire. The defeat was due to Liu B...
分类:其他好文   时间:2014-06-20 12:57:12    阅读次数:240
ZOJ Monthly, June 2014——Grouping
n个点,m条边 每条边两个整数a、b,表示a到b的有向边 求,至少需要几个集合,使得:每个集合中的元素互相不能到达 N(1≤ N≤ 100000), M(1≤ M≤ 300000)...
分类:其他好文   时间:2014-06-20 11:52:46    阅读次数:175
unity3D总结的一些细节,不注意有些要折腾非常多天!
1. 注意!!ps保存图片时,若保存为ps格式,若关闭最大兼容将会导致unity导入失败!(n天)2.switch 推断NGUI popuplist传来的value字符串时一定要trim一下去掉空格!3. 获取子物体时,方法不同得到的结果不同!foreach(Transform tr in tran...
分类:其他好文   时间:2014-06-12 19:51:05    阅读次数:466
浅谈 js 字符串 trim 方法之正则篇
关于 trim 其实没啥好说的,无非就是去除首位空格,对于现代浏览器来说只是简单的正则 /^\s+|\s+$/ 就可以搞定了。而且支持中文空格 等等。什么 \s 支持 中文空格?是的。打开 RegExp#character-classes 往下拉一点,找到 \s 这个解释。原文:Matches a....
分类:Web程序   时间:2014-06-10 12:19:45    阅读次数:303
浅谈 js 字符串 trim 方法之正则篇
原文:浅谈 js 字符串 trim 方法之正则篇关于 trim 其实没啥好说的,无非就是去除首位空格,对于现代浏览器来说只是简单的正则 /^\s+|\s+$/ 就可以搞定了。而且支持中文空格 等等。什么 \s 支持 中文空格?是的。打开 RegExp#character-classes 往下拉一点,...
分类:Web程序   时间:2014-06-10 11:30:18    阅读次数:303
ZOJ 1151 Word Reversal反转单词 (string字符串处理)
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151For each list of words, output a line with each word reversed without changing the or...
分类:其他好文   时间:2014-06-10 00:14:19    阅读次数:300
zoj 1454 Employment Planning
【题解】:【代码】: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL long long 7 using namespace std; 8 LL dp[15][100005]; 9 LL N,h,uh,...
分类:其他好文   时间:2014-06-08 20:08:41    阅读次数:261
ZOJ 3795 Grouping
给n个人的年龄大小关系,问最少分几组使每个组里面人的年龄不能直接或间接的比较。 每个联通块里的人都得分到不同的组,缩点后找最长的链即答案 tarjian缩点+dp找最长路 Grouping Time Limit: 2 Seconds      Memory Limit: 65536 KB Suppose there are N people in ZJU, who...
分类:其他好文   时间:2014-06-08 09:44:30    阅读次数:321
ZOJ 3790 Consecutive Blocks
离散化+暴力 Consecutive Blocks Time Limit: 2 Seconds      Memory Limit: 65536 KB There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to N from left to right) which are lined up in a row. An...
分类:其他好文   时间:2014-06-07 13:08:07    阅读次数:193
ZOJ 3789 Gears
并查集, 删除节点操作,可以用新建节点代替 维护每个点到跟节点的距离 Gears Time Limit: 2 Seconds      Memory Limit: 65536 KB Bob has N (1 ≤ N ≤ 2*105) gears (numbered from 1 to N). Each gear can rotate clockwise or co...
分类:其他好文   时间:2014-06-07 11:33:37    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!