/** * 数字转化为百分比 */ public static String getPercentResult(Object number) { NumberFormat nf = NumberFormat.getPercentInstance(); //这个1的意识是保存结果到小数点后几位,但是特 ...
分类:
其他好文 时间:
2019-11-09 23:39:52
阅读次数:
324
"CF280D k Maximum Subsequence Sum" 线段树维护贪心 要取$k$次,考虑贪心策略如下 先取最大的连续子段,然后有两种决策: ? 1.从原来的某一段已经被取的连续子段中取一段最小的断开那个子段 ? 2.另取一个子段 ~~(非常有道理对吧)~~ 接下来考虑用线段树优化这个 ...
分类:
其他好文 时间:
2019-11-09 12:05:41
阅读次数:
92
下面的代码一是我根据rem的使用经验,自己写的一个rem.js,发现很好用,能适用所有移动端h5页面的自适应需求: 下面的代码二,是我在小米网上看到的移动端h5页面自适应代码,效果跟我的一样,也可以使用: 看这两个函数,把这些代码放到js里面,规则就是,调用函数,放两个参数,第一个参数,是设计稿的宽 ...
分类:
移动开发 时间:
2019-11-09 11:52:00
阅读次数:
110
1 #include<iostream> 2 #include<algorithm> 3 #include<map> 4 using namespace std; 5 6 map<int, int>cnt; 7 8 int main() 9 { 10 int T; 11 cin >> T; 12 w ...
分类:
其他好文 时间:
2019-11-07 12:53:58
阅读次数:
65
A. Maximum Square 直接O(kn^2)枚举最大边长 #include<iostream> #include<cstdio> #include<cstring> using namespace std; int k,n,a[1005]; int main(){ cin>>k; whil ...
分类:
其他好文 时间:
2019-11-07 10:04:02
阅读次数:
97
A Maximum Square 题意:给 $n$ 块宽度为 $1$ 长度为 $a_i$ 的木板,把这些木板拼在一起,求最大形成的正方形的边长。 题解:贪心,从大到小排序,然后找第一个满足 $a_i using namespace std; typedef long long ll; int n, ...
分类:
其他好文 时间:
2019-11-07 09:47:09
阅读次数:
105
1源码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 ...
分类:
其他好文 时间:
2019-11-05 15:29:26
阅读次数:
106
Windows内核分析索引目录:https://www.cnblogs.com/onetrainee/p/11675224.html 用户异常与模拟异常的派发 一、KiDispatchException函数处理流程图 无论用户模拟异常还是CPU异常,经过前面分析,在经过记录之后,最终都会经过KiDi ...
分类:
其他好文 时间:
2019-11-05 13:53:19
阅读次数:
104
原题链接在这里:https://leetcode.com/problems/path-with-maximum-gold/ 题目: In a gold mine grid of size m * n, each cell in this mine has an integer representin ...
分类:
其他好文 时间:
2019-11-04 13:51:41
阅读次数:
89
1 实验目的 理解RIP路由表的建立与更新 感受RIP坏消息传得慢 2 实验内容 使用Packet Tracer,正确配置网络参数,使用命令查看和分析RIP路由信息。 建立网络拓扑结构 配置参数 分析RIP路由信息 3. 实验报告 姓名 .林雅静 学号 201821121068 班级 计算1813 ...
分类:
其他好文 时间:
2019-11-03 14:57:00
阅读次数:
108