Keywords: War3, Warcraft III,Frozen Throne, 游戏, 建网, 看不见, 主机尝试一下操作:1. 确保魔兽版本一致2. 关闭Windows防火墙和自己安装的防火墙3. 确保连网电脑在相同的工作组(WorkGroup)4. 确保连网电脑使用相同的网络位置(家庭网...
分类:
其他好文 时间:
2015-06-22 07:35:57
阅读次数:
204
pog loves szh III
Accepts: 63
Submissions: 483
Time Limit: 12000/6000 MS (Java/Others)
Memory Limit: 131072/131072 K (Java/Others)
问题描述
pog在与szh玩游戏,首先pog在纸上画了一棵有根树,这里我们定义1为这...
分类:
其他好文 时间:
2015-06-22 06:27:55
阅读次数:
141
Contains Duplicate III
Given an
array of integers, find out whether there are two distinct indices i and j in
the array such that the difference between nums[i] and nums[j] is
at most t and
t...
分类:
其他好文 时间:
2015-06-17 21:37:57
阅读次数:
117
题目链接:hdu 5266 pog loves szh III思路:因为它查询的是区间上的lca,所以我们需要用在线lca来处理,达到单点查询的复杂度为O(1),所以我们在建立线段树区间查询的时候可以达到O(1*nlgn)的时间复杂度ps:因为栈很容易爆,所以。。。。。你懂的 --》#pragma ...
分类:
其他好文 时间:
2015-06-14 10:57:08
阅读次数:
126
pog loves szh III
Accepts: 63
Submissions: 483
Time Limit: 12000/6000 MS (Java/Others)
Memory Limit: 131072/131072 K (Java/Others)
问题描述
pog在与szh玩游戏,首先pog在纸上画了一棵有根树,这里我们定义1...
分类:
其他好文 时间:
2015-06-13 11:26:44
阅读次数:
115
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.1~9: {"I", "II", "III", "IV", "V", "VI", "VI...
分类:
其他好文 时间:
2015-06-12 16:45:05
阅读次数:
94
1.Best Time to Buy and Sell Stock I 题目链接 题目要求: Say you have an array for which theithelement is the price of a given stock on dayi. If you were ...
分类:
其他好文 时间:
2015-06-11 19:12:11
阅读次数:
117
light_oj 1138 求阶乘后导零的个数N -Trailing Zeroes (III)Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1138Descrip...
分类:
其他好文 时间:
2015-06-11 01:44:30
阅读次数:
124
题意:给出一棵树,1为根节点,求一段区间内所有点的最近公共祖先。解法:用一棵线段树维护区间LCA。LCA是dp做法。dp[i][j]表示点i的第2^j个祖先是谁,转移方程为dp[i][j] = dp[dp[i][j - 1]][j - 1],初始的dp[i][0]可以用一次dfs求得,这样可以用lo...
分类:
其他好文 时间:
2015-06-09 15:40:44
阅读次数:
121
G -Dice (III)Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionGiven a dice withnsides, you have to find the expected number ...
分类:
其他好文 时间:
2015-06-09 09:43:13
阅读次数:
103