Molar massTime Limit: 3000MSMemory Limit: Unknown64bit IO Format: %lld & %llu Submit Status DescriptionAn organic compound is any member of a large cl...
分类:
其他好文 时间:
2015-01-18 18:28:28
阅读次数:
326
Master-Mind HintsTime Limit: 3000MSMemory Limit: Unknown64bit IO Format: %lld & %llu Submit Status DescriptionMasterMind is a game for two players. On...
分类:
其他好文 时间:
2015-01-18 15:35:57
阅读次数:
174
B - Counting BST Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 5058DescriptionBinary Search Tree (BST) ...
分类:
其他好文 时间:
2015-01-18 11:46:37
阅读次数:
161
题意:有一个三维的地图,有n个人被困住,现在消防队员只能从1楼的一个入口进入,营救被困者,每一个被困者有一个价值,当消防队员找到一个被困者之后,他可以营救或者见死不救,如果救的话,他必须马上将其背到入口处,不得停下,不得同时救多个人,而且回去的时间一步要做两步走,即时间增加一倍。求在给定时间S内,能...
分类:
其他好文 时间:
2015-01-17 22:04:41
阅读次数:
263
H - Fire Drill Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 5066DescriptionJoko is taking part in a fi...
分类:
其他好文 时间:
2015-01-17 20:43:03
阅读次数:
205
题目链接:点击打开链接
除了Integer, String等,其他(即对象)都是引用。。(就是地址,想要和C一样的效果要新建一个对象)
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java...
分类:
其他好文 时间:
2015-01-03 15:57:31
阅读次数:
261
题目链接:点击打开链接
给定多叉树的先序遍历结果,求多叉树的同构数
思路:区间dp
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
int min(int a,int b){return a>b?b:a;}
int max(...
分类:
其他好文 时间:
2014-12-24 13:31:30
阅读次数:
136
不容易,kd-tree。。终于过了,wa了好久,然后快两个月没管它,今天终于过了。题目意思很简单,然后做法就是用kd-tree找最邻近的点和次邻近的点。有几个坑点,就是点积和叉积会爆int,然后就是我的几何模板挫了,点在线段上,由于没有判断点是否会和线段的端点重合,我一直wa。下午重新看题的时候突然...
分类:
其他好文 时间:
2014-12-16 16:34:36
阅读次数:
215
Jungle OutpostTime limit: 15.000 secondsDescriptionThere is a military base lost deep in the jungle. It is surrounded bynwatchtowers with ultrasonic g...
分类:
其他好文 时间:
2014-12-08 21:04:51
阅读次数:
264
SquaresThe famous Korean IT companyplans to make a digital map of the Earth with help of wireless sensors which spread out in rough terrains. Each ...
分类:
其他好文 时间:
2014-12-08 12:03:39
阅读次数:
329