Loading

上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: #include<iostream> #include<cstdio> using namespace std; struct edge { int u; int v; int w; }; struct edge e[10]; int n,m; int f[7]={0},sum=0,count=0; 阅读全文
posted @ 2020-11-05 20:22 Do1phln 阅读(91) 评论(0) 推荐(0)
摘要: Pass-01 前端js绕过 拿到题目看hint提示判定在前端,用burp代理,将1.php后缀名更改为.png格式即可通过前端检测,而后在burp中对修改包内容,将1.png改为1.php即可绕过前端js检测 Pass-02 MIME验证 上传php后显示不成功,但是上传图片显示正常,即使用bur 阅读全文
posted @ 2020-11-04 22:56 Do1phln 阅读(190) 评论(0) 推荐(0)
摘要: Lets Warm Up If I told you a word started with 0x70 in hexadecimal, what would it start with in ASCII? 这应该就是签到题了吧?爱了爱了,十六进制转十进制再打表(突然ACM)转ASCII,得到‘p’, 阅读全文
posted @ 2020-11-04 22:55 Do1phln 阅读(310) 评论(0) 推荐(0)
摘要: 思路 队列的原理基本与站队一样,队首出,队尾入,变化以后也是大同小异,写起来主要就是注意struct的相关知识,以及伪指针(分别指向队首和队尾+1),队尾序号要+1以防首位变量数字重合造成不必要的麻烦(目前也不是很清楚会遇到什么) 代码 #include<iostream> using namesp 阅读全文
posted @ 2020-11-04 22:52 Do1phln 阅读(143) 评论(0) 推荐(0)
摘要: 思路 快排基本思路应该就是二分+递归,从两侧同时(实则先从右往左)往中间找,同时和参变量对比,发现位置颠倒后交换位置,然后通过二分将其一块一块的分割开,直到分割到一个元素位置,即完成了快排。 代码 #include<bits/stdc++.h> using namespace std; int a[ 阅读全文
posted @ 2020-11-04 22:51 Do1phln 阅读(257) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int book[101],sum,n,e[101][101]; void dfs(int cur) { cout<<cur<<" "; sum++; if(sum==n) return; for(int i=1;i<= 阅读全文
posted @ 2020-11-04 22:49 Do1phln 阅读(61) 评论(0) 推荐(0)
摘要: 刷pico遇到一个凯撒密码加密题,顺手写了个解密工具,但是暂时没有解决到边界字母的升降档问题 #include<iostream> using namespace std; int main(){ char s[100]; int n,k,s2[100]; cin>>n>>k; for(int i= 阅读全文
posted @ 2020-11-04 22:46 Do1phln 阅读(150) 评论(0) 推荐(0)
摘要: 题目:shark on wire 1 Description We found this packet capture. Recover the flag. 思路 这里懂得了winshark的一些基本用法(感谢wbl学长),例如常见的CTF的杂项的流量包分析,主要内容集中在TCP中进行TCP追踪流( 阅读全文
posted @ 2020-11-04 22:44 Do1phln 阅读(200) 评论(0) 推荐(0)
摘要: 人民网 阅读全文
posted @ 2020-11-01 22:25 Do1phln 阅读(69) 评论(0) 推荐(0)
摘要: Description 有一个字符串(长度小于100),要统计其中有多少个*,并输出该字符串去掉后的新字符串。 Input 输入数据有多组,每组1个连续的字符串; Output 在1行内输出该串内有多少个 和去掉后的新串。 Sample Input Goodggod223**df2w Qqqq* S 阅读全文
posted @ 2020-10-01 10:28 Do1phln 阅读(147) 评论(0) 推荐(0)
摘要: 一般来说,如果不指定优化标识的话,gcc就会产生可调试代码,每条指令之间将是独立的:可以在指令之间设置断点,使用gdb中的 p命令查看变量的值,改变变量的值等。并且把获取最快的编译速度作为它的目标。 当优化标识被启用之后,gcc编译器将会试图改变程序的结构(当然会在保证变换之后的程序与源程序语义等价 阅读全文
posted @ 2018-07-14 18:59 Do1phln 阅读(6599) 评论(0) 推荐(2)
摘要: 敬爱的一中老师们的经典语录 阅读全文
posted @ 2018-07-10 19:01 Do1phln 阅读(5474) 评论(0) 推荐(0)
摘要: 输入100个学生的学号、姓名、性别(0男1女),数学、语文、英语成绩,然后计算语数外平均分按从高到低的顺序排列后输出。 #include<cstdio> #define MAXN 100 //学生类型 typedef struct student{ int id, sex, ch, ma, en; 阅读全文
posted @ 2018-01-22 00:02 Do1phln 阅读(448) 评论(0) 推荐(0)
摘要: 1 //将有序列表L和R合并到A列表上 2 void Merge(int *L, int Lc, int *R,int Rc){ 3 int i = 0,j = 0,k = 0;//分别表示L,R,A列表的索引 4 while(i < Lc && j < Rc) 5 T[k++] = L[i] < R[j] ? L[i++] : R[j++];//T变量... 阅读全文
posted @ 2018-01-20 21:53 Do1phln 阅读(203) 评论(0) 推荐(0)
摘要: 1 void quick_sort(int arr[], int i,int j){ 2 if(i >= j) return; 3 int mid = arr[j]; 4 inta=i,b=j-1; 5 while(a = mid && a = arr[j]) 13 swap(arr[a], arr[j]); 14 else... 阅读全文
posted @ 2018-01-20 21:23 Do1phln 阅读(288) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页