![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TopCoder
文章平均质量分 84
iteye_5392
这个作者很懒,什么都没留下…
展开
-
TopCoder SRM 582 SpaceWarDiv2
算法复杂度:O(m+n)(假定girl和enemy都有序,实际题目,不记得,如果不是有序,那么先排序,采用计数排序的话,如果范围不大还可以进一步减小算法复杂度)O(MlogM+nlogN) 实际过程是:采用归并排序过程中合并计算移动平均数 public class SpaceWarDiv1 { /** * 实际上是求移动平均数(实际计算只需要2个...原创 2013-06-19 11:01:57 · 133 阅读 · 0 评论 -
BoxesDiv2——SRM 622 DIV2
import java.util.*;public class BoxesDiv2{ public BoxesDiv2(){} public int findSize(int[] candyCounts) { Arrays.sort(candyCounts); for(int i=0;i<candyCou...原创 2014-05-30 06:30:28 · 95 阅读 · 0 评论 -
MixingColors--SRM621 DIV2
Problem Statement for MixingColors Definition Class:MixingColorsMethod:minColorsParameters:int[]Returns:intMethod signature:...原创 2014-05-22 14:27:06 · 153 阅读 · 0 评论 -
Problem A. Part Elf, Round 1C JAM,2014
Problem A. Part ElfThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Guide to...原创 2014-05-12 11:31:34 · 87 阅读 · 0 评论 -
srm 620 div2
/** * User: Free * Date: 14-5-11 * Time: 上午12:52 */public class PairGameEasy{ public String able(int a, int b, int c, int d) { String Y = "Able to generate"; S...原创 2014-05-11 01:53:05 · 70 阅读 · 0 评论 -
srm 594 div2
has submitted the 500-point problem for 150.03 points哎,感觉没有思考多少时间,但是真的是不熟练么?边写边想,混到div2中去,真是悲催了。 import java.util.*; /** * User: Free * Date: 13-10-19 * Time: 21:49 */public cl...原创 2013-10-19 22:53:26 · 135 阅读 · 0 评论 -
做TopCoder的题,终于知道自己有多弱了
做TopCoder的题,发现自己有多弱了,且不说有些题不会。就是会的题,平均一道题也要90分钟才能完成。。。真不知道那些神一样的人75分钟3道题目是什么样的对手。。。。...原创 2013-06-23 22:45:56 · 1259 阅读 · 0 评论 -
SRM IDNumberVerification
Problem Statement for IDNumberVerificationProblem Statement This problem statement contains superscripts and/or subscripts. These may not display properly outside the...原创 2013-06-21 22:38:52 · 203 阅读 · 0 评论 -
TopCoder SRM583 GameOnBoard
2013-06-19没有注册:没有去做做题,不知道对不对,还没在TopCoder上做过题。 ---------------------------------------------------------------------------------------------------- 看成是N(N= String.length *String.length)个点无向图...原创 2013-06-20 08:28:42 · 130 阅读 · 0 评论 -
ShoutterDiv2
/*Problem Statement for ShoutterDiv2Problem Statement A group of freshman rabbits has recently joined the Eel club. No two of the rabbits knew each other. Today, each of the rabbits ...原创 2013-06-19 11:07:38 · 128 阅读 · 0 评论 -
SRM646 DIV2——分支限界搜索题
package srm646;import java.util.Comparator;import java.util.HashSet;import java.util.PriorityQueue;import java.util.Set;public class TheGridDivTwo { //<1>state的比较函数,是"大于>"即...原创 2015-01-17 10:26:22 · 108 阅读 · 0 评论