The partial sum problem时间限制:1000 ms | 内存限制:65535 KB 难度:2描述One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you...
分类:
其他好文 时间:
2014-07-16 19:24:53
阅读次数:
181
uvalive4108:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2109题意:按照顺序建造一些矩形的房屋,房屋是二维的,每个房屋起点,...
分类:
其他好文 时间:
2014-07-15 09:17:26
阅读次数:
296
1 import java.util.Scanner; 2 3 /** 4 * Created by Administrator on 14-5-13. 5 * 超级楼梯 6 Problem Description 7 有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上...
分类:
其他好文 时间:
2014-07-15 00:42:28
阅读次数:
277
import java.util.Scanner;/** * Created by Administrator on 14-5-13. * 计算斐波那契数列 * * Result M(Problem prob) { if () return ; // The problem cannot be so...
分类:
其他好文 时间:
2014-07-15 00:39:15
阅读次数:
408
Ultra-QuickSortTime Limit: 7000MSMemory Limit: 65536KTotal Submissions: 39538Accepted: 14259DescriptionIn this problem, you have to analyze a particul...
分类:
其他好文 时间:
2014-07-15 00:19:06
阅读次数:
296
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:
其他好文 时间:
2014-07-14 23:51:56
阅读次数:
425
Eddy's digital Roots
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4275 Accepted Submission(s): 2404
Problem Description
The digit...
分类:
其他好文 时间:
2014-07-14 20:30:11
阅读次数:
194
本文载自【k sum problem】以及【NSum】有位同僚,对该问题做出了代码的小结,想看吗?戳我戳我。问题陈述:在一个数组,从中找出k个数(每个数不能重复取。数组中同一个值有多个,可以取多个),使得和为零。找出所有这样的组合,要求没有重复项(只要值不同即可,不要求在原数组中的index不同)解...
分类:
其他好文 时间:
2014-07-14 14:16:00
阅读次数:
219
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2136
Problem A
Another n-Queen Problem
I guess the n-queen problem is known by every ...
分类:
其他好文 时间:
2014-07-13 18:16:11
阅读次数:
498
Ultra-QuickSort
Time Limit: 7000MS
Memory Limit: 65536K
Total Submissions: 39529
Accepted: 14250
Description
In this problem, you have to analyze a particular sorti...
分类:
其他好文 时间:
2014-07-13 18:01:58
阅读次数:
201