摘要: P1886 滑动窗口 现在有一堆数字共N个数字(N<=10^6),以及一个大小为k的窗口。现在这个从左边开始向右滑动,每次滑动一个单位,求出每次滑动后窗口中的最大值和最小值。 例如: The array is [1 3 -1 -3 5 3 6 7], and k = 3. 输入输出格式 输入格式: 阅读全文
posted @ 2019-01-30 15:27 邱涵的秘密基地 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Sherry 现在碰到了一个棘手的问题,有N个整数需要排序。 Sherry 手头能用的工具就是若干个双端队列。 她需要依次处理这 N 个数,对于每个数, Sherry 能做以下两件事: 1. 新建一个双端队列,并将当前数作为这个队列中的唯一的数; 2. 将当前数放入已有的队列的头之前或者尾之后。 对 阅读全文
posted @ 2019-01-29 20:57 邱涵的秘密基地 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #include<cmath> //#include<vector> //#include<stack> #include<map> #define R 阅读全文
posted @ 2019-01-28 16:15 邱涵的秘密基地 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 #include<cmath> 6 #include<vector> 7 //#include<stack> 8 #include< 阅读全文
posted @ 2019-01-27 20:36 邱涵的秘密基地 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1DP #2题目名称 种植 计数 棋盘 树输入文件名 plant.in count.in chess.in tree.in输出文件名 plant.out count.out chess.out tree.out每个测试点时限1s 1s 1s 1 s测试点数目 10 10 10 10每个测试点分值10 阅读全文
posted @ 2019-01-27 18:28 邱涵的秘密基地 阅读(199) 评论(1) 推荐(2) 编辑
摘要: body { color: #000; background: url(https://images.cnblogs.com/cnblogs_com/MashiroSky/887480/o_49383596_p0.jpg) fixed; background-size: cover; background-repeat: no-repeat; font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif; font-size: 12px; min-height: 101%; } 阅读全文
posted @ 2019-01-26 20:15 邱涵的秘密基地 阅读(211) 评论(0) 推荐(0) 编辑
摘要: NOIP 模拟题By liu_runda题目名称 数 论 题源程序文件名 number.cpp theory.cpp problem.cpp输入文件名 number.in theory.in problem.in输出文件名 number.out theory.out problem.out每个测试点 阅读全文
posted @ 2019-01-25 18:59 邱涵的秘密基地 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 模拟题 day3出题人: liu_runda题目名称 摆渡 摆车 背包源程序文件名 boat.cpp ju.cpp pack.cpp输入文件名 boat.in ju.in pack.in输出文件名 boat.out ju.out pack.out每个测试点时限 1s 1s 1s内存限制 512MB 阅读全文
posted @ 2019-01-24 21:42 邱涵的秘密基地 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Muddy Fields Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12683 Accepted: 4696 Description Rain has pummeled the cows' field, a rectangu 阅读全文
posted @ 2019-01-24 11:28 邱涵的秘密基地 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 模拟题 day2出题人: liu_runda题目名称 一盘大棋 下一代互联网 强连通分量源程序文件名 chess.cpp net.cpp scc.cpp输入文件名 chess.in net.in scc.in输出文件名 chess.out net.out scc.out每个测试点时限 1s 1s 1 阅读全文
posted @ 2019-01-23 21:41 邱涵的秘密基地 阅读(213) 评论(0) 推荐(0) 编辑