自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 收藏
  • 关注

原创 git常用指令

一、git上传文件1、本地新建目录(project1)2、克隆远程连接密钥ssh,进入项目目录git clone 3、将目标文件复制到project1文件里cp [目标文件] ./4、将文件加入暂存区git add [文件名] #指定文件git add ./ #所有文件5、将文件提交到本地仓库git commit -m [文件名] /[备注信息]6、将本地的分支版本上传到远程并合并git push <远程主机名> <本地

2022-03-22 14:33:15 246

原创 c语言函数的几种调用约定和细节问题

一、函数几种调用约定调用约定 参数压栈顺序 平衡堆栈 __cdecl 从右至左入栈 调用者清理栈 __stdcall 从右至左入栈 自身清理堆栈 __fastcall ECX/EDX传送前两个 自身清理堆栈 剩下:从右至左入栈 用法:返回值类型 (调用约定)函数名()不写调用约定的话,默认第一种调...

2019-07-30 20:45:23 666

原创 bugku——love

题目链接:https://ctf.bugku.com/challenges#love作为一个逆向小白,这道题我觉得有必要记录下,这道题我自己分析了一半,没有完全分析出来(觉得是自己见的题少,没有做题经验,而且需要熟悉下各种加密),参考了网上大佬们的博客。首先把这个拖进exeinfope中看看有啥重要信息没从上面得到用c++写的,32位,无壳,符合PE结构,然后拉进IDA中...

2019-07-18 19:52:27 965 1

转载 sql基本查询

数据库基本查询https://www.cnblogs.com/yank/p/3672478.html大二数据库实验报告册:https://blog.csdn.net/qq_38409944/article/details/80424093以这个数据库为例,说一些经典的查询语句:create database XSGLGOuse XSGLGOCreate table stude...

2019-07-11 17:45:15 243

原创 c调用函数对应的汇编语言的基本格式

以下面这个代码为例:#include<stdio.h>void plus(){}int main(){ plus(); return 0;}这块代码对应的汇编代码如下://传入参数,压入堆栈,参数倒着传进去,没有参数的可以省略这步,这里就不要传入push//call 地址,找到函数的地址call plus(012F10D2h)/...

2019-07-11 15:59:15 409

原创 OD使用

OD拖进去一个.exe文件1、界面(这是从别人的博客中偷来的图,作者看到的话表示感谢

2019-07-11 09:57:42 601

原创 丑数

题目:我们把只包含因子2、3和5的数称作丑数(Ugly Number)。求按从小到大的顺序的第1500个丑数。例如6、8都是丑数,但14不是,因为它包含因子7。习惯上我们把1当做第一个丑数。这道题是经典题目,第九届蓝桥杯A组题目就有一道类似的,一会也一同说了,解析:只含因子2,3,5,的意思也就是不能有其他素数作为因子,例如7,9,11等等,再或者说这个数一直除以2,再一直除以3,再一直除...

2019-03-23 11:09:41 201

原创 PE头解析

这两天对于PE的学习总结:1.PE结构的应用(1)windows下exe文件(2)动态链接库(大部分是以dll为扩展名得文件)2.关于PE分节(1)节省硬盘空间 (2)一个应用程序多开对齐 旧式的电脑 新款 硬盘对齐 200h 1000h 内存对齐 1000h 1000h 3.PE整体结构DOS头...

2019-03-16 16:31:28 589

原创 Happy 2006

Two positive integers are said to be relatively prime to each other if the Great Common Divisor (GCD) is 1. For instance, 1, 3, 5, 7, 9...are all relatively prime to 2006. Now your job is easy: for t...

2018-12-04 21:51:35 603 3

转载 放苹果

把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 &lt;= t &lt;= 20)。以下每行均包含二个整数M和N,以空格分开。1&lt;=M,N&lt;=10。Output对输入的每组数据M和N,用一行输出相应的K。Sample Input17 ...

2018-12-03 20:53:49 98

原创 GCD (HDU - 1695 容斥原理和欧拉函数)

Given 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y) means the greatest common divisor of x and y. Since the number of choices may be very large, you're...

2018-12-03 16:05:25 589

原创 Island Transport

Island TransportIn the vast waters far far away, there are many islands. People are living on the islands, and all the transport among the islands relies on the ships.   You have a transportation c...

2018-11-19 20:38:54 253

原创 Power Network

A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) &gt;= 0 of power, may produce an amount 0...

2018-11-16 21:26:08 276

原创 对邻接表之菜鸟见解

邻接表比邻接矩阵快,占空间小,但是却没有邻接矩阵好理解,看完一个版本懵逼一个版本,这是最近刷网络流时又重新学了一遍,才知道自己是真的菜,这么简单的东西还搞了这么半天,哎。int next[maxn],cnt=0;struct node{ int u, v, w, next;} edge[maxn];void add_edge(int u, int v, int w)///三...

2018-11-14 21:00:03 155

原创 字典树(剪枝)

字典树板子很简单,用数组方式写的或是指针写的,这里提到的是字典树的剪枝问题,以下面这道题为例,http://acm.hdu.edu.cn/showproblem.php?pid=5536这道题因为要除去i,j,k相等的情况,所以每次查询的时候要去剪枝,即一路标记,需要剪枝的时候再一路减下去,剪完之后还要加上去,代码如下:#include&lt;stdio.h&gt;#inclu...

2018-10-31 19:43:59 363

原创 java的加减乘除

写这个的时候搜了好多东西,比如next,nextInt,nextDoouble,nextLine的区别,太不容易了,终于知道基础的重要性了package nyist.com;import java.util.*;import java.math.*;public class Demo{ static public void main(String[] args){ Scanne...

2018-10-15 15:46:56 1844

原创 Rikka with Stone-Paper-Scissors

http://acm.hdu.edu.cn/showproblem.php?pid=6418Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 448    Accepted Submission(s): 208Problem D...

2018-08-21 16:51:47 208

原创 233 Matrix

Time limit5000 msMemory limit65536 kBOSWindowsIn our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is t...

2018-08-10 16:56:40 381

原创 Pinball(物理)

                                                 PinballTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 616    Accepted Submission(s): 272...

2018-08-10 10:22:58 371

原创 矩阵快速幂模板和构造矩阵

板子代码(其余的题构造出矩阵代入,改下计算的结果就行)#include&lt;stdio.h&gt;#include&lt;string.h&gt;#include&lt;algorithm&gt;using namespace std;#define mod 10000struct node{ long long m[2][2];//根据构造的矩阵而定数组的大小} a...

2018-08-09 17:33:46 412

原创 oval-and-rectangle

oval-and-rectangleTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 445    Accepted Submission(s): 198 Problem DescriptionPatrick Star fin...

2018-08-09 09:44:11 204

原创 Everything Has Changed

Everything Has ChangedTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 741    Accepted Submission(s): 431Special Judge Problem Descripti...

2018-08-07 17:02:54 213

原创 Training little cats

D - Training little catsTime limit2000 msMemory limit65536 kBOSLinuxFacer's pet cat just gave birth to a brood of little cats. Having considered the health of those lovely cats, Facer de...

2018-08-07 10:24:05 367

原创 Swap

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2819Given an N*N matrix with each entry equal to 0 or 1. You can swap any two rows or any two columns. Can you find a way to make all the diagonal entr...

2018-07-28 16:24:05 155

原创 求逆序数

内存限制:64MB 时间限制:2s Special Judge: No题目描述:在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。现在,给你一个N个元素的序列,请你判断出它的逆序数是多少。比如 1 3 2 的逆序数就是1。输入描述:第一行输入一个整数T表示测试数据的组数(1&lt;=...

2018-07-26 17:00:29 473

原创 Just a Hook

In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length.Now Pudg...

2018-07-20 10:13:29 423

原创 树状数组

上一篇说了线段树的应用,有一类题目不仅可以用线段树做还可以用树状数组做,一些卡时间的线段树过不了,树状数组可以过树状数组不管是在时间上还是空间上都比线段树更优(但是仅限于在某些方面比较优化,求最值问题树状数组解决不了),但是思想有点难理解,不理解就多看几天,相信功夫不负有心人。树状数组关键点lowbit自定义函数(求的是把x的二进制的最后一个一是多少)(它的原理其他博客讲得很清楚,自行搜索)...

2018-07-19 16:31:23 68

原创 线段树的入门加简单应用(POJ 2528 Mayor's posters )

线段树的实现原理还有一些基础的板子在下面这篇博客里写的非常清楚,(我完全通过看这篇博客学会线段树的)https://www.cnblogs.com/TheRoadToTheGold/p/6254255.html给几个基础的题目可以对比着来看http://nyoj.top/problem/108http://nyoj.top/problem/116http://nyoj.top/...

2018-07-19 11:47:49 156

原创 Anton and Fairy Tale-(二分)

题目链接:http://codeforces.com/problemset/problem/785/CC. Anton and Fairy Taletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnton likes to listen to ...

2018-05-18 20:16:07 200

原创 房间安排

A 房间安排 内存限制:64MB 时间限制:3s Special Judge: No 题目描述: ...

2018-05-15 21:17:26 154

原创 Cow Contest

N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all know, some cows code better than others. Each cow has a certain constant skill rating that is un...

2018-05-04 20:56:03 124

原创 Talented Chef

题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3778As we all know, Coach Gao is a talented chef, because he is able to cook M dishes in the same time. Tonight he is going to have a ...

2018-04-24 17:57:58 184

原创 http://acm.hdu.edu.cn/showproblem.php?pid=2612-(广搜)

Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki. Yifenfei’s home is at the co...

2018-04-18 16:33:13 265

原创 Secret Chamber at Mount Rushmore

Secret Chamber at Mount Rushmore                                            By now you have probably heard that there is a spectacular stone sculpture featuring four famous ...

2018-04-12 23:45:22 194

原创 Team

题目链接:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&amp;a=showProblem&amp;problem_id=2322Time Limit: 1000 MSMemory Limit: 130172 KTotal Submit: 398(70 users)Total Accepted: 79(55 users)Rating:Special...

2018-04-07 09:09:15 147

原创 K - Can you find it?

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2141 Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, w...

2018-04-06 09:23:44 176

原创 map用法

map函数map函数极为映射(map的键和值是唯一的)例:int a[100];即为a[i]=k;将i映射到k,int型映射到int,数组的弊端就是只能映射到int型map可以避免这种弊端.1.map定义方法map&lt;type1,type2&gt;mp;mp为变量名,就相当于上面数组的名字a。(如果是字符串到整型的映射,必须使用string而不能用char)2.map的访问方式:第一:像以前的...

2018-04-04 21:40:47 1195

原创 第九届蓝桥杯第三题

标题:乘积尾零如下的10行数据,每行有10个整数,请你求出它们的乘积的末尾有多少个零?5650 4542 3554 473 946 4114 3871 9073 90 4329 2758 7949 6113 5659 5245 7432 3051 4434 6704 3594 9937 1173 6866 3397 4759 7557 3070 2287 1453 9899 1486 5722 3...

2018-04-02 20:36:22 241

原创 函数求解

我今天才知道longlong的另一种写法,下面用题目来说明F-函数求解题目链接:http://acm.fzu.edu.cn/problem.php?pid=2206 给出n,求f(n)。 Input 第一行一个正整数T,表示数据组数。 接下来T行,每行一个正整数n。 T&lt;=20,n&lt;=2015000000。 Output ...

2018-03-23 13:19:12 441

原创 大数阶乘

大数阶乘时间限制:3000 ms  |  内存限制:65535 KB难度:3描述我们都知道如何计算一个数的阶乘,可是,如果这个数很大呢,我们该如何去计算它并输出它?输入输入一个整数m(0&lt;m&lt;=5000)输出输出m的阶乘,并在输出结束之后输入一个换行符样例输入50样例输出3041409320171337804361260816606476884437764156896051200000...

2018-02-27 18:38:29 107

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除