Poker FaceTime Limit:2 Seconds Memory Limit:65536 KBAs is known to all, coders are lack of exercise and Kato is one of them. In order to get fit, he d...
分类:
其他好文 时间:
2014-11-30 16:40:42
阅读次数:
117
Circular Area
Time Limit: 2 Seconds Memory Limit: 65536 KB
Your task is to write a program, which, given two circles, calculates the area of their intersection with the accuracy of three ...
分类:
其他好文 时间:
2014-11-29 23:08:03
阅读次数:
520
1 /* 2 题目大意:一个n*m的棋盘,每天放一个棋子,每行每列至少有一个棋子时结束。求达到每行每列至少有一个棋子的天数的数学期望。 3 */ 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int ma...
分类:
其他好文 时间:
2014-11-28 22:37:26
阅读次数:
194
WERTYU
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8492
Accepted: 4063
Description
A common typing error is to place the hands on the keyboard one...
分类:
其他好文 时间:
2014-11-27 22:12:48
阅读次数:
291
标题: 黄金连分数
黄金分割数0.61803... 是个无理数,这个常数十分重要,在许多工程问题中会出现。有时需要把这个数字求得很精确。
对于某些精密工程,常数的精度很重要。也许你听说过哈勃太空望远镜,它首次升空后就发现了一处人工加工错误,对那样一个庞然大物,
其实只是镜面加工时有比头发丝还细许多倍的一处错误而已,却使它成了“近视眼”!!
...
分类:
编程语言 时间:
2014-11-27 10:44:45
阅读次数:
241
标题:错误票据
某涉密单位下发了某种票据,并要在年终全部收回。
每张票据有唯一的ID号。全年所有票据的ID号是连续的,但ID的开始数码是随机选定的。
因为工作人员疏忽,在录入ID号的时候发生了一处错误,造成了某个ID断号,另外一个ID重号。
你的任务是通过编程,找出断号的ID和重号的ID。
假设断号不可能发生...
分类:
编程语言 时间:
2014-11-27 10:42:46
阅读次数:
134
http://www.lydsy.com:808/JudgeOnline/problem.php?id=1296分析:首先预处理出每一行的g[0..T]表示这一行刷0..T次,最多得到的正确格子数。这个做法只要把每一行连续的个数分别求出来,然后从大到小累加就行然后整体来看,就是对n个物品做泛化背包了...
分类:
其他好文 时间:
2014-11-27 00:05:53
阅读次数:
188
算法:已知多边形各顶点坐标,求多边形面积的公式http://www.cnblogs.com/FleetingTime/p/3849957.htmlhttp://www.mathchina.net/dvbbs/dv_rss.asp?s=xhtml&boardid=3&id=3883&page=4
分类:
其他好文 时间:
2014-11-26 20:34:15
阅读次数:
210
[java] view
plaincopyprint?
import java.io.BufferedInputStream;
import java.util.Scanner;
public class Main {
static String start;// record the first str
static ...
分类:
编程语言 时间:
2014-11-26 11:27:54
阅读次数:
349
Let S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways:
By an integer sequence P = p1 p2 ... pn where pi is the number of left parentheses before the...
分类:
编程语言 时间:
2014-11-26 11:27:01
阅读次数:
374