题面 "传送门" 题解 好毒啊……$de$了一个晚上的$bug$…… 题目所求为 $$\prod_{i=1}^n\sigma_0(i)^{\mu(i)+i}(mod\ 10^{12}+39)$$ 那么我们把式子拆开来,变成 $$(\prod_{i=1}^n\sigma_0(i)^{\mu(i)})( ...
分类:
其他好文 时间:
2019-02-22 23:27:50
阅读次数:
180
题目分析: 我们令$G(x)$表示前$x$个点的平均深度,$F(x)$表示第$x$个点的期望深度。 有$F(x) = G(x-1)+1$,$G(x) = G(x-1)+\frac{1}{x}$ 所以答案相当于一个调和级数和的前缀和,我们对小于1e6的暴力处理,大于1e6的利用欧拉常数做。 代码: ...
分类:
其他好文 时间:
2019-02-19 18:50:44
阅读次数:
186
WebGoat SQL盲注 解题思路 ★ 题目:SQL Injection (advanced)地址: http://127.0.0.1:8080/WebGoat/start.mvc#lesson/SqlInjectionAdvanced.lesson/4 题目要求最终以Tom的身份登录到系统中。 ...
分类:
数据库 时间:
2019-02-18 01:30:53
阅读次数:
260
概述 这是 WebGoat 的最后一部分,主要内容是 WebGoat中的Challenge,前面还有 1 和 2。 Challenge Admin lost password 本题目的服务端源代码。 @AssignmentPath("/challenge/1") public class Assig ...
分类:
Web程序 时间:
2019-02-18 01:14:45
阅读次数:
419
以s结尾 The s ending is pronounced three ways, according to the ending of the verb. /iz/ after ch , sh , s , x , z endings. Example teaches, washes, kiss ...
分类:
其他好文 时间:
2019-02-17 10:42:46
阅读次数:
234
安装nginx可参考:nginx重新编译支持ssl可参考:接下来手动配置ssl证书:自己手动颁发证书的话,那么https是不被浏览器认可的,就是https上面会有一个大红叉下面是手动颁发证书的操作切换到nginx配置文件#cd/usr/local/nginx/conf创建配置证书目录#mkdirssl#cdssl1.生成私钥opensslgenrsa-des3-outcert.key1024#生成
分类:
系统相关 时间:
2019-02-15 13:11:36
阅读次数:
253
题目链接:https://ctf.bugku.com/challenges 题解: 打开题目,观察这一串数组,发现每一组都是由0和1组成,且长短不一;找到了mrose和ascii的对应表,mrose和ascii对应表链接:https://pan.baidu.com/s/1qaE5AjcORTBrI_ ...
分类:
其他好文 时间:
2019-02-10 23:35:13
阅读次数:
332
"142. O(1) Check Power of 2" 本题难度: Easy Topic: Math&Bit Manipulation Description Using O(1) time to check whether an integer n is a power of 2. Exampl ...
分类:
其他好文 时间:
2019-02-10 09:39:13
阅读次数:
160
A. King Escape 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int n, x[3], y[3]; 5 6 int f1(int X, int Y) 7 { 8 return X - Y - x[2] + y[2]; ...
分类:
其他好文 时间:
2019-02-09 10:42:12
阅读次数:
189
A. The King's Race 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define ll long long 5 ll n, x, y; 6 7 ll f(ll a, ll b) 8 { 9 return max(a ...
分类:
其他好文 时间:
2019-02-06 10:41:54
阅读次数:
233