109. 天才ACM 给定一个整数 M,对于任意一个整数集合 S,定义“校验值”如下: 从集合 S中取出 M 对数(即 2?M 个数,不能重复使用集合中的数,如果 S 中的整数不够 M 对,则取到不能取为止),使得“每对数的差的平方”之和最大,这个最大值就称为集合 S的“校验值”。 现在给定一个长度 ...
分类:
编程语言 时间:
2019-05-14 15:04:39
阅读次数:
187
题目链接:ZOJ - 4123 题目大意:给你a和p,然后问你[1,2^p]中满足那个等式的值有多少个。 具体思路: 具体的证明:https://blog.csdn.net/v5zsq/article/details/79325038 打表发现当a为奇数的时候答案为1.当a为偶数的时候,x也必须为偶 ...
分类:
移动开发 时间:
2019-05-14 11:21:26
阅读次数:
208
"bzoj4052 [CERC2013]Magical GCD" 给定一个长为 $n$ 的序列,求一个子序列使得子序列的公约数与长度的乘积最大,求这个最大值。共 $T$ 组数据。 $n\leq10^5,\ a_i\leq10^{12}$ gcd,ST表 "gym100299 C" "UVA1642 ...
分类:
其他好文 时间:
2019-05-13 23:05:41
阅读次数:
158
1.常用的打印格式化字符 %@ 对象 %d,%i 整型 (%i的老写法) %hd 短整型 %ld , %lld 长整型 %u 无符整型 %f 浮点型和double型 %0.2f 精度浮点数,只保留两位小数 %o 八进制 %zu size_t %p 指针地址 %e float/double (科学计算 ...
分类:
移动开发 时间:
2019-05-12 17:10:06
阅读次数:
217
对于平常的应用程序开发,我们很少需要关注 和`链接 Xcode (IDE) 编译 链接 编译 链接 构建 gcc hello.c`命令就包含了非常复杂的过程! 正是因为集成开发环境的强大,很多系统软件的 被掩盖,其程序的很多莫名其妙的错误让我们无所适从,面对程序运行时种种性能瓶颈我们束手无策。我们看 ...
分类:
移动开发 时间:
2019-05-11 16:33:58
阅读次数:
208
1、查看防火墙状态 firewall-cmd --state 2、停止防火墙 systemctl stop firewalld.service 3、禁止开机启动防火墙 systemctl disable firewalld.service ...
分类:
其他好文 时间:
2019-05-10 11:08:38
阅读次数:
107
include include include include include int main(void) { int hour, sec; int n, m; time_t a; time(&a); // a值为时间戳 printf("a:%lld\n", a); printf("the tim ...
分类:
其他好文 时间:
2019-05-09 15:15:52
阅读次数:
89
蒟蒻写题解实在不易 前置芝士 "NTT与多项式求逆" 推式 推式中如有不理解的地方在多项式求逆的题解中均有详细说明 求$B(x)$,使得$B(x)^2\equiv A(x)(mod x^n)$ $$\begin{aligned}\\ B(x)^2\equiv A(x)(mod x^n),B(x)^2 ...
分类:
其他好文 时间:
2019-05-06 19:14:35
阅读次数:
122
线段树模板 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 #include<cmath> 6 #include<queue> 7 #define pn putchar('\n') ...
分类:
其他好文 时间:
2019-05-06 18:59:27
阅读次数:
118
逆向APP的思路 1.界面分析 Cycript、Reveal 2.代码分析 对Mach O文件的静态分析 MachOView、class dump、Hopper Disassembler、ida等 3.动态调试 对运行中的APP进行代码调试 debugserver、LLDB 4.代码编写 注入代码到 ...
分类:
移动开发 时间:
2019-05-06 01:35:50
阅读次数:
164