摘要:
//字符串处理 回文串 #include<iostream> #include<string.h> using namespace std; const int maxn=256; bool judge(char str[]) { int len =strlen(str); for(int i=0; i<len/2; i++) { //枚举字符串的前一半 if(str[i] !=str[len-1 阅读全文
摘要:
堆最好是使用数组来表示。。。。。 阅读全文
摘要:
农夫约翰为了修理栅栏,要将一块很长的木板分割为N块,准备切成的木板的长度为L1,L2......Ln。未切割前木板的长度等于切割后木板的总和,每次切断木板时,需要的开销为这块木板的长度,,例如长度为21的木板要切成长度为8、5、8的三块木板,长为21的木板切成长为13和8时,开销为21,再将长度13 阅读全文
摘要:
#include #include using namespace std; int main() { const int V[6] = {1,5,10,50,100,500}; int A; int C[6]; cout>C[j]; } cout>A; int ans=0; for(int i=5; i>=0; i--) { int t=min(A/V[i],C[i... 阅读全文
摘要:
#include<iostream>using namespace std;const int Max = 5; int fill_array(double ar[],int limit){ using namespace std; double temp; int i; for(i=0;i<lim 阅读全文
摘要:
https://klionsec.github.io/2014/12/14/search-hacking/ 熟练利用Google hacking 来辅助我们快速渗透 http://www.sec-redclub.com/archives/116/ 红日安全 https://www.freebuf.c 阅读全文
摘要:
环境win10 工具 吾爱破解od 是一道检测你的keyfile是否正确的题目。 1、使用od打开 2、查看字符串智能搜索,看看有什么发现,双击箭头这里查看 猜测这里是加载due-cm2.dat文件,然后检测文件是否是有效的。在桌面生成一个due-cm2.dat文件。继续向下查看是否有检测成功的地方 阅读全文
摘要:
环境:win10 工具:jadx 、夜神模拟器、pycharm 下载好了之后加载到模拟器 输入正确的flag验证 加载到jadx。查看MainAtivity if语句进行验证是否正确,如果正确就输出you get it!调用了a函数,查看一下a函数 看到定义了四个数组a b c d 其中对arr数组 阅读全文
摘要:
啥也不说把题目下载下来,在模拟器里运行一下 输入正确的key就是flag 继续下一步分析,可以使用Androidkiller分析,我喜欢使用jeb这里我就使用jeb进行分析 找到MainActivity,反编译 分析的差不多了,毕竟是入门题 阅读全文
摘要:
//SelectSort //选择最小的,交换到左边 #include using namespace std; void SelectSort (int a[],int n) { for(int i=0;i<n;i++) { int min =i;//记录最小的值 for(int j=i+1;j<n;j++) { ... 阅读全文