#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int read() { int x=0, Read More
posted @ 2018-06-02 15:46 白驹过隙----青春绿 Views(129) Comments(0) Diggs(0) Edit
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int read() { int x=0, Read More
posted @ 2018-06-02 09:14 白驹过隙----青春绿 Views(180) Comments(0) Diggs(0) Edit
话说我一个初二的小蒟篛,给我布置线性代数(汗)。。。。。。 硬着头皮写博客 矩阵 第一部分 矩阵的定义 由 m × n 个数aij排成的m行n列的数表称为m行n列的矩阵,简称m × n矩阵。记作: 这m×n 个数称为矩阵A的元素,简称为元,数aij位于矩阵A的第i行第j列,称为矩阵A的(i,j)元, Read More
posted @ 2017-12-02 09:21 白驹过隙----青春绿 Views(561) Comments(0) Diggs(0) Edit
自编的游戏,想要的可以考走,会不定时更新 主要是我怕代码丢了 #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #include<co Read More
posted @ 2017-11-13 17:33 白驹过隙----青春绿 Views(262) Comments(0) Diggs(0) Edit
是不是烦透了char数组??? 是不是一见字符串“查找”“包含”“下标”等等就晕??? 没关系! 你可以用string!【奸笑】 string,让字符串更简单! 主要介绍几个非常好用的函数,基本都在这个代码里面了,注释写的很详细,就不多说了 输出如下,建议和代码对照起来看 这些还是建议背一背,挺容易 Read More
posted @ 2017-11-10 21:16 白驹过隙----青春绿 Views(143) Comments(0) Diggs(0) Edit
试题描述 一片战场被划分为N行N列小区域,敌我双方各占据其中一个小区域。根据侦察,敌人派出工兵潜入各区域(包括我方和敌方所在区域)布设了地雷。现我方侦察兵已经掌握了各片区域的地雷数量。为偷袭敌人,需要寻找一条从我方区域通向敌方区域并且地雷总数最少的路径,执行偷袭任务时,此路净上的地雷都需要排除。请你 Read More
posted @ 2017-10-23 19:13 白驹过隙----青春绿 Views(171) Comments(0) Diggs(0) Edit
试题描述 有n个结点,初始时每个结点的父结点都不存在。你的任务是执行若干次Set操作和Query操作,格式如下: □Set u v:把结点u的父结点设为v,距离为|u-v|除以1000的余数。输入保证执行指令前u没有父结点。 □Query u:询问u到根结点的距离。 输入 第一行包含两个正整数n和m Read More
posted @ 2017-10-21 15:49 白驹过隙----青春绿 Views(196) Comments(0) Diggs(1) Edit
部分内容摘自博客http://blog.csdn.net/u012881011/article/details/46883863,感谢 试题描述 有一些简单化合物,每个化合物部由两种元素组成的(每个元素用一个大写字母表示)。你是一个装箱工人,从实验员那里按照顺序依次把一些简单化合物装到车上。但这里存 Read More
posted @ 2017-10-21 15:22 白驹过隙----青春绿 Views(208) Comments(0) Diggs(0) Edit
http://www.doc88.com/p-9982181637642.html 连载中…… (一)八大排序算法 下面这张表摘自博客http://blog.csdn.net/whuslei/article/details/6442755/ 排序算法基本就考这张表 另1:快排找第k大的数,O(N) Read More
posted @ 2017-10-12 17:18 白驹过隙----青春绿 Views(637) Comments(1) Diggs(2) Edit
今天学校运动会,累了,不想写太多。。。 感谢博客http://blog.csdn.net/doyouseeman/article/details/51154142 正题 一、何为离散化? 有一个数组,数太大了,存不下。这时可以只储存数组中的每个数是第几大,节省大量空间和时间。 注意:数组中可能会有相 Read More
posted @ 2017-09-29 21:09 白驹过隙----青春绿 Views(180) Comments(0) Diggs(2) Edit