题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5335 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const...
分类:
其他好文 时间:
2015-08-05 06:28:22
阅读次数:
158
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5328 1 #include 2 #include 3 typedef long long ll; 4 const int MAXN = 1e6+10; 5 ll ...
分类:
其他好文 时间:
2015-08-05 06:27:22
阅读次数:
122
1623: [Usaco2008 Open]Cow Cars 奶牛飞车Time Limit:5 SecMemory Limit:64 MBSubmit:325Solved:223[Submit][Status][Discuss]Description编号为1到N的N只奶牛正各自驾着车打算在牛德比亚的...
分类:
其他好文 时间:
2015-08-05 06:26:12
阅读次数:
134
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=5344 1 #include 2 #include 3 const int MAXN = 500010; 4 int A[MAXN]; 5 void bas( in...
分类:
其他好文 时间:
2015-08-05 06:26:29
阅读次数:
136
132 Palindrome Partitioning II这道题就是标识出s[i:j+1]是否为palindrome, 然后dp找出最小分割class Solution: # @param {string} s # @return {integer} def minCut(sel...
分类:
其他好文 时间:
2015-08-05 06:26:36
阅读次数:
110
public :表示此方法可以被外部调用; static:表示此方法可以由类名称直接调用; void:主方法是程序的起点,所以不需要返回任何值; main:系统规定好默认调用的方法名称,执行时默认找到main方法名称。 String args[]:表示的是运行时的参数,参数传递的形式为“...
分类:
其他好文 时间:
2015-08-05 06:23:29
阅读次数:
137
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5288 1 //*************头文件区************* 2 #include 3 #include 4 #include 5 #define N 100010 6 #define P...
分类:
其他好文 时间:
2015-08-05 06:25:53
阅读次数:
137
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5301 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int n,m,x,y,s,l; 7 int ma...
分类:
其他好文 时间:
2015-08-05 06:24:32
阅读次数:
119
DOM设定: < >样式设定:#container {width:1024px; height:350px; overflow:hidden; position:relative; margin:0 auto; ...
分类:
其他好文 时间:
2015-08-05 06:24:04
阅读次数:
217
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5326 1 #include 2 #include 3 const int MAX = 105; 4 int n, k; 5 int a[MAX][MAX]; 6 ...
分类:
其他好文 时间:
2015-08-05 06:23:32
阅读次数:
151
一. 开发者账号分类1.个人 $99 - 6882.企业 :$99 - 688 邓氏码企业认证(困难),团队开发. $299 邓氏码认证,但是不能上架(不经过苹果审核),专门给企业级用户定制应用程序使用.(直接使用ipa包)二. 注册开发者账号三. 真机调试1.注册成为苹果开发者(99$)2....
分类:
其他好文 时间:
2015-08-05 06:22:32
阅读次数:
154
一、在mingw-w64官网下载mingw-w64在线安装包二、点击mingw-w64进行安装,选择: Version:选最新版本 我这个是4.9.2 Architecture:x86_64 (64位系统环境开发64位程序) Threads:posix Exception:seh Buil...
分类:
其他好文 时间:
2015-08-05 06:23:39
阅读次数:
937
树分治,设当前树的分治中心为x,其子树分治中心为y,则设father[y]=x,分治下去则可以得到一颗重心树,而且树的深度是logn。 询问操作(x,d),只需要查询重心树上x到重心树根节点上的节点的累加和。假设当前节点是y,那么节点y可以贡献的答案是那些以y为分治中心且到y距离为d-dis(...
分类:
其他好文 时间:
2015-08-05 06:22:39
阅读次数:
186
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5327 1 #include 2 #include 3 const int MAXN = 100010; 4 bool a[MAXN]; 5 int s[MAXN]...
分类:
其他好文 时间:
2015-08-05 06:21:49
阅读次数:
119
只要你打开电脑,就会涉及到查找技术。如炒股软件中查股票信息、硬盘文件中找照片、在光盘中搜DVD,甚至玩游戏时在内存中查找攻击力、魅力值等数据修改用来作弊等,都要涉及到查找。当然,在互联网上查找信息就更加是家常便饭。查找是计算机应用中最常用的操作之一,也是许多程序中最耗时的一部分,查找方法的优劣对于系...
分类:
其他好文 时间:
2015-08-05 06:22:10
阅读次数:
224
1、题目名称 Valid Anagram (易位构词) 2、题目地址 https://leetcode.com/problems/valid-anagram/ 3、题目内容 英文:Given two strings s and t, write a function to determine if t is an anagram of s. 中...
分类:
其他好文 时间:
2015-08-05 01:21:50
阅读次数:
369
在《重构——改善既有代码的设计》一书中,有一种重构手法叫Encapsulate?Collection (封装集群),为了演示该重构手法,我写了四个类,通过对比重构前后的代码,加深对 这一重构手法的理解。 类Student有一Array...
分类:
其他好文 时间:
2015-08-05 01:19:00
阅读次数:
122