网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放。 width - viewport的宽度 height - viewport的高度 initial-scale - 初始的缩放比例 minimum-scale - 允...
分类:
移动开发 时间:
2014-07-12 08:05:46
阅读次数:
368
网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放。 width - viewport的宽度 height - viewport的高度 initial-scale - 初始的缩放比例 minimum-scale - 允...
分类:
移动开发 时间:
2014-07-12 08:04:34
阅读次数:
328
最标准的最小割算法应用题目。
核心思想就是缩边:先缩小最大的边,然后缩小次大的边,依此缩小
基础算法:Prime最小生成树算法
不过本题测试的数据好像怪怪的,同样的算法时间运行会差别很大,而且一样的代码替换,居然会WA。系统出错的几率很小,难倒测试系统本题会有错误?
懒得继续测试这道题的系统了,反正算法正确,AC。
#include
#include
#include
c...
分类:
其他好文 时间:
2014-07-10 17:09:23
阅读次数:
159
How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop and min should a...
分类:
其他好文 时间:
2014-07-10 16:45:33
阅读次数:
210
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-07-09 23:00:38
阅读次数:
208
1、andriod gradle插件版本过低。
出错位置:
dependencies{
classpath 'com.android.tools.build:gradle:0.10.2'
}
提示信息:You must use a newer version of the Android Gradle plugin. The minimum supported version is ...
分类:
其他好文 时间:
2014-07-09 10:43:51
阅读次数:
230
Minimum Inversion Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9864 Accepted Submission(s): 6069
Problem Description
T...
分类:
其他好文 时间:
2014-07-08 19:15:43
阅读次数:
232
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1394...
分类:
其他好文 时间:
2014-07-08 16:27:04
阅读次数:
138
Description
Consider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root node is X, we can get the minimum number in this ...
分类:
其他好文 时间:
2014-07-06 11:36:14
阅读次数:
284
题目连接:uva 10560 - Minimum Weight
题目大意:给出n,问说至少需要多少个不同重量的砝码才能称量1~n德重量,给出所选的砝码重量,并且给出k,表示有k个重量需要用上述所选的砝码测量。
解题思路:重量为1的砝码肯定要选,它可以表示到1的重量,那么下一个砝码的重量肯定选择3(2?1+1),这样1,3分别可以用一个砝码表示,而2,4分别为3-1和3+1,这样1~4的...
分类:
其他好文 时间:
2014-07-06 00:52:07
阅读次数:
174