随笔分类 -  无脑

摘要:双指针扫描 阅读全文
posted @ 2018-10-15 10:28 GhostCai 阅读(133) 评论(0) 推荐(0) 编辑
摘要:双指针 阅读全文
posted @ 2018-10-14 17:49 GhostCai 阅读(94) 评论(0) 推荐(0) 编辑
摘要:预处理每个点向左向右向上延伸的最长距离即可 实现上注意矩形的约束条件,也就是取min的过程 cpp include include using namespace std; const int MAXN = 1005; int n,m; int a[MAXN][MAXN]; int h[MAXN][ 阅读全文
posted @ 2018-10-11 10:34 GhostCai 阅读(84) 评论(0) 推荐(0) 编辑
摘要:纯粹的模拟题 阅读全文
posted @ 2018-09-30 00:59 GhostCai 阅读(144) 评论(0) 推荐(0) 编辑
摘要:模拟,递推 阅读全文
posted @ 2018-09-05 00:47 GhostCai 阅读(108) 评论(1) 推荐(0) 编辑
摘要:单调的转移优化 阅读全文
posted @ 2018-07-09 11:12 GhostCai 阅读(125) 评论(0) 推荐(0) 编辑
摘要:分类讨论,分类讨,分类,分,... 阅读全文
posted @ 2018-07-04 15:44 GhostCai 阅读(117) 评论(0) 推荐(0) 编辑
摘要:二分答案 优先队列 阅读全文
posted @ 2018-07-04 10:45 GhostCai 阅读(159) 评论(0) 推荐(0) 编辑
摘要:欧拉函数 分数形式约分 阅读全文
posted @ 2018-07-04 08:50 GhostCai 阅读(99) 评论(0) 推荐(0) 编辑
摘要:见7.3测试 阅读全文
posted @ 2018-07-03 21:01 GhostCai 阅读(94) 评论(0) 推荐(0) 编辑
摘要:题目描述NN 位同学站成一排,音乐老师要请其中的( N-KN−K )位同学出列,使得剩下的 KK 位同学排成合唱队形。合唱队形是指这样的一种队形:设K位同学从左到右依次编号为 1,2,…,K1,2,…,K ,他们的身高分别为 T_1,T_2,…,T_KT 1​ ... 阅读全文
posted @ 2018-06-19 10:39 GhostCai 阅读(112) 评论(0) 推荐(0) 编辑
摘要:题目背景无题目描述为了检测生产流水线上总共N件产品的质量,我们首先给每一件产品打一个分数A表示其品质,然后统计前M件产品中质量最差的产品的分值Q[m] = min{A1, A2, ... Am},以及第2至第M + 1件的Q[m + 1], Q[m + 2] ... ... 阅读全文
posted @ 2018-06-19 10:38 GhostCai 阅读(89) 评论(0) 推荐(0) 编辑
摘要:Black Box是一种原始的数据库。它可以储存一个整数数组,还有一个特别的变量i。最开始的时候Black Box是空的.而i等于0。这个Black Box要处理一串命令。命令只有两种:ADD(x):把x元素放进BlackBox;GET:i加1,然后输出Blackho... 阅读全文
posted @ 2018-06-15 08:13 GhostCai 阅读(92) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 5 Sec Memory Limit: 162 MBSubmit: 18888 Solved: 7955[Submit][Status][Discuss]Description营业额统计 Tiger最近被公司升任为营业部经理,他上任后接受公... 阅读全文
posted @ 2018-06-13 21:45 GhostCai 阅读(82) 评论(0) 推荐(0) 编辑
摘要:/ Joy OI / 题目列表 /没有上司的舞会题目限制时间限制 内存限制 评测方式 题目来源1000ms 131072KiB 标准比较器 Local题目描述Ural大学有N个职员,编号为1~N。他们有从属关系,也就是说他们的关系就像一棵以... 阅读全文
posted @ 2018-04-18 17:35 GhostCai 阅读(90) 评论(0) 推荐(0) 编辑
摘要:B. Intercepted Messagetime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputHacker Zhor... 阅读全文
posted @ 2018-03-14 23:17 GhostCai 阅读(94) 评论(0) 推荐(0) 编辑
摘要:A. Left-handers, Right-handers and Ambidexterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputst... 阅读全文
posted @ 2018-03-14 23:15 GhostCai 阅读(149) 评论(0) 推荐(0) 编辑
摘要:A. Protect Sheeptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBob is a farmer. ... 阅读全文
posted @ 2018-03-14 23:12 GhostCai 阅读(118) 评论(0) 推荐(0) 编辑
摘要:题目背景若某个家族人员过于庞大,要判断两个是否是亲戚,确实还很不容易,现在给出某个亲戚关系图,求任意给出的两个人是否具有亲戚关系。题目描述规定:x和y是亲戚,y和z是亲戚,那么x和z也是亲戚。如果x,y是亲戚,那么x的亲戚都是y的亲戚,y的亲戚也都是x的亲戚。输入输出... 阅读全文
posted @ 2018-01-13 12:13 GhostCai 阅读(95) 评论(0) 推荐(0) 编辑
摘要:近一段时间把普及的题做一做。这。。以为有什么坑点 想多了#includeusing namespace std;int main(){ int a,b,c; cin>>a>>b>>c; cout<<a*0.2+b*0.3+c*0.5; retu... 阅读全文
posted @ 2017-12-28 15:54 GhostCai 阅读(57) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示