链接:http://poj.org/problem?id=1836 Alignment Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 14457 Accepted: 4690 Description In the army, a ...
分类:
其他好文 时间:
2017-07-08 11:21:00
阅读次数:
140
题目链接:Educational Codeforces Round 22 E. Army Creation 题意: 给你n个数和一个数k,然后有q个询问. 每个询问 有一个区间[l,r],问你这个区间内在满足每一种数不超过k的情况下,最大能选多少个数出来。 强制在线。 题解: 一看就要用到主席树,和 ...
分类:
其他好文 时间:
2017-07-06 20:47:39
阅读次数:
127
此文为博主原创题解,转载时请通知博主,并把原文链接放在正文醒目位置。 题目链接:http://poj.org/problem?id=3723 Description Windy has a country, and he wants to build an army to protect his c ...
分类:
其他好文 时间:
2017-07-04 12:16:47
阅读次数:
310
I am a Worcestershire man. …which sent me over to India. …the Indian Army rebelled against the British. Worcestershire是英格兰中西部的一个郡。Small说他的亲戚们都是好人,只有他自... ...
分类:
其他好文 时间:
2017-06-29 01:03:26
阅读次数:
190
创建army实体模型类的控制器armyController 添加了队伍模型的添加,编辑,详情,删除几种方法 相关代码如下 接下来在Armys添加视图以便于了解详细得分 ...
分类:
其他好文 时间:
2017-06-24 21:53:16
阅读次数:
136
A 你可以按如下方式移动 问能不能从给定的一个坐标走到另一个。 【solution】 裸,奇偶性注意 B After returning from the army Makes received a gift — an array a consisting of n positive integer ...
分类:
其他好文 时间:
2017-06-17 10:06:35
阅读次数:
244
E. Army Creation As you might remember from our previous rounds, Vova really likes computer games. Now he is playing a strategy game known as Rage of ...
分类:
其他好文 时间:
2017-06-16 22:06:10
阅读次数:
168
Alignment Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 14486 Accepted: 4695 Description In the army, a platoon is composed by n soldiers ...
分类:
其他好文 时间:
2017-06-10 21:26:47
阅读次数:
195
定义一系列算法,把它们一个个封装起来,并且它们可相互替换。本模式使得算法可独立于使用它的客户而变化。 概述 比如,设计一个Army类,该类有一个int数组,数组表示士兵的号码,该类中有一个lineUp()方法,该方法用于将士兵按照号码从小到大排列。但有时候需要将士兵按照从大到小排列,此时要么新增一个 ...
分类:
其他好文 时间:
2017-04-24 22:52:54
阅读次数:
133
http://codeforces.com/gym/100283/problem/F 思路是二分第几行,二分出来的行是总和 >= n的,那么第k - 1行一定要选,那么再在第k行中二分那一列、 #include <cstdio> #include <cstdlib> #include <cstrin ...
分类:
其他好文 时间:
2017-04-17 12:29:34
阅读次数:
257