题目链接 #解题思路 题面差不多已经用的算法写到脸上了,不过有个问题就是怎么判断枚举的区间符合条件,如果直接暴力的话复杂度就要乘上q,但是如果用一个变量来计数的话,就能让时间复杂度降下来。 #代码 const int maxn = 1e5+10; int n,m,a[maxn],cnt[maxn]; ...
分类:
其他好文 时间:
2020-07-21 13:37:33
阅读次数:
60
额............我也不知道(先记下) printf("%d\n", (scanf("%d", &n), n)) printf("%d\n", (~scanf("%d", &n))); 打印结果都相同........ 测试题目连接:http://acm.hdu.edu.cn/showprob ...
分类:
其他好文 时间:
2020-07-21 10:04:39
阅读次数:
80
首先 一看到名字 就去搜索了 Calc注入 想通过知识点 自己完成 而不是 跟着题解走 然后 看文章 表达式注入 同步测试: 找到api: http://node3.buuoj.cn:28564/calc.php GET 参数: num 测试 1*2 返回 2 然后发现毫无卵用 乖乖搜题解 Roar ...
分类:
其他好文 时间:
2020-07-20 15:41:56
阅读次数:
81
用source insight 4新建工程的时候,发现不能识别.cu文件,网上搜索解决方案的时候出来的都是下面的这种 Options -> Document Options, Document Type 下拉选 C++ Source File, File Filter 中加入,*.cc 然而我的so ...
分类:
其他好文 时间:
2020-07-20 15:28:30
阅读次数:
65
三个文件的全部信息 flag in /fllllllllllllag render md5(cookie_secret+md5(filename)) 看了cookie 未找到cookie_secret 查询资料: [原题复现]2018护网杯(WEB)easy_tornado(模板注入) 获取cook ...
分类:
其他好文 时间:
2020-07-20 13:32:20
阅读次数:
111
题:http://acm.hdu.edu.cn/showproblem.php?pid=6725 分析:给节点选值肯定是选边界值。假设由节点是选中间值,那么肯定有比它选值更好的值,所以把选的可能定为2个。 #include<bits/stdc++.h> using namespace std; #d ...
分类:
其他好文 时间:
2020-07-20 00:01:14
阅读次数:
96
Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all ...
分类:
其他好文 时间:
2020-07-19 00:50:18
阅读次数:
85
After you replace ABS ECU or yaw rate/G sensor for Toyota,it will get C1210A trouble code.It will ask you to program yaw rate sensor.So here i want to ...
分类:
其他好文 时间:
2020-07-18 22:15:43
阅读次数:
104
一、download and upload to CentOS7 "mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar" 二、install 1 [root@liuhonglei ~]# ls 2 anaconda-ks.cfg easy-mock mysql-8.0. ...
分类:
数据库 时间:
2020-07-18 13:42:31
阅读次数:
313
原题目: Debug celsius converter Your friend is traveling abroad to the United States so he wrote a program to convert fahrenheit to celsius. Unfortunatel ...
分类:
其他好文 时间:
2020-07-18 11:23:22
阅读次数:
62