分析 简单递归模拟即可 注意转向 代码 cpp include include define int long long using namespace std; int t,n,a,b; int city(int k,int p,int& x,int& y){//2^2k,标号为 p 时的房屋的坐 ...
分类:
其他好文 时间:
2019-06-15 09:47:26
阅读次数:
72
防火墙相关 --reload:不改变状态的条件下重启防火墙 --complete-reload:状态信息将会丢失,当防火墙有问题时可以使用,如,状态信息和防火墙规则都正常却无法建立任何链接的情况等 查看防火墙状态 查看、打开、关闭应急模式(应急模式阻断所有网络连接,防止出现紧急状况) 打开、关闭、重 ...
分类:
其他好文 时间:
2019-06-12 18:19:32
阅读次数:
97
按时间继承关系建立主席树(权值线段树) 线段树维护区间和、元素个数 cpp include include define int long long using namespace std; const int N=1e5+5; const int SZ=5e6+6; int m,n; int to ...
分类:
其他好文 时间:
2019-06-09 13:16:42
阅读次数:
146
Description Description 求组合数C(n,m) 求组合数C(n,m) Input Input T(0 < T < 2000) 每组样例两个数n, m(0 < n, m< 60) T(0 < T < 2000) 每组样例两个数n, m(0 < n, m< 60) 每组样例两个数n ...
分类:
其他好文 时间:
2019-06-08 21:38:37
阅读次数:
138
L - Fantasy of a Summation LightOJ - 1213 快速幂,每个元素的次数k*n^(k-1),模完了加就行。要记得在每个位置都模一下 ...
分类:
其他好文 时间:
2019-06-08 19:06:13
阅读次数:
128
#include int main(){ int T,i,n; long long a[66]={1,2,4,8}; scanf("%d",&T); while(T--){ scanf("%d",&n); for(i=4;i<66;i++) a[i]=a[i-1]+a[i-2]+a[i-3]+a[i... ...
分类:
其他好文 时间:
2019-06-03 17:13:09
阅读次数:
100
其实这题题目这么短就是为了让你AK TimeLimit: 1000ms MemoryLimit:65535KB 64 bit integer IO format:%lld Problem Description 给定一个长度为v的数组A和一个数n,将n用A内的一些数字的和表示,求有几种方式。(A内的 ...
分类:
其他好文 时间:
2019-05-30 01:29:03
阅读次数:
84
// SqlDbType转换为C#数据类型 public static Type SqlType2CsharpType(SqlDbType sqlType) { switch (sqlType) { case SqlDbType.BigInt: return typeof(Int64); case ... ...
分类:
数据库 时间:
2019-05-28 09:29:26
阅读次数:
103
离散化 离散化在处理只是注重一个数组中的数之间的大小关系时,是可以用离散化的操作来减小数的值得。 c++ bool cmp(ha a, ha b) { return a.num ...
分类:
其他好文 时间:
2019-05-26 12:56:23
阅读次数:
95