1. viewdidload 设置代理 2.代理里面指定VC 隐藏 3. 在根控制器首页 禁用手势, 不管有几个 homeVc, 有俩tabbar 就在俩homeVc都写上 在 willappear 和willDisaapper 使用 ...
分类:
编程语言 时间:
2018-11-19 17:25:40
阅读次数:
145
Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2887 Accepted Submission(s): 969 Problem ...
分类:
其他好文 时间:
2018-11-17 21:28:00
阅读次数:
243
题面 输入只有5位,所以转化为long long类型用快速幂取模 前面补0的写法printf("%05lld\n",ans);如果ans不足5位会在前面补0 1 #include<bits/stdc++.h> 2 using namespace std; 3 long long mod_exp(lo ...
分类:
其他好文 时间:
2018-11-17 17:54:44
阅读次数:
186
Description $T$ 次询问有多少个数对 $(x,y)$ 满足 $a≤x≤b,c≤y≤d$ 且 $gcd(x,y) = k$。 Solution 假设 $n const int N = 50005; int a, b, c, d, k, T, tot, np[N], p[N], mu[N] ...
分类:
其他好文 时间:
2018-11-17 16:09:26
阅读次数:
114
1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : ...
分类:
其他好文 时间:
2018-11-17 16:06:06
阅读次数:
206
pragma solidity ^0.4.0; contract modifierTest{ bytes32 public blockhash; address public coinbase; uint public difficulty; uint public gaslimit; uint p... ...
分类:
其他好文 时间:
2018-11-15 17:19:16
阅读次数:
230
Centos 7.4 需要安装 #安装httpd(apache) Yum install –y httpd # 启动服务 systemctl start httpd.service # 检查服务状态 systemctl status httpd.service # 设定开机启动 systemctl ...
分类:
其他好文 时间:
2018-11-14 12:31:59
阅读次数:
348
题意:有n个人在一条直线上,在这条直线上有k把钥匙(n<=k),有一个门,要求每个人都携带一把钥匙来开这张门!求他们需要的最短时间! 我这次感觉虽然看懂了题,但是我第二次想的时候就跑题了啊,这道题可以说是二分中的经典,最大值最小化,也就是开要使得开这张门最长的那个时间最短,但是我二分不会写judge ...
分类:
其他好文 时间:
2018-11-14 01:05:51
阅读次数:
161
"传送门" 给定一棵树,每个点有点权,选定$k$个叶子,满足根到$k$个叶子的所有路径所覆盖的点权和最大。 首先考虑一个贪心,每一次选择权值最大的一条链,然后把这条链上的权值清零,重复$k$次 于是~~很显然~~这样的贪心可以等价于把这棵树给剖成若干条链。那么考虑用长链剖分来搞,只要把链的长度换成所 ...
分类:
其他好文 时间:
2018-11-13 14:19:43
阅读次数:
98