math-solution
文章平均质量分 82
Geterns
这个作者很懒,什么都没留下…
展开
-
SCUT J.O: Biorhythms
Biorhythms<br />Time Limit:<br />1000MS Memory Limit:<br />10000KDescription<br />Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycl原创 2010-12-07 10:39:00 · 206 阅读 · 0 评论 -
SCUT J.O: 纪念邮票
纪念邮票Time Limit:1000MS Memory Limit:10000KDescription邮局最近推出了一套纪念邮票,这套邮票共有N张,邮票面值各不相同,按编号顺序为1分,2分,…,N分。小杭是个集邮爱好者,他很喜欢这套邮票,可惜现在他身上只有M分,并不够把全套都买下。他希望尽量买,最好刚好花光所有钱。作为一个集邮爱好者,小杭也不想买的邮票编号断断续续。所以小杭打算买面值a分至b分的b-a+1张连续的邮票,且总价值刚好为M分。你的任务是求出所有符合要求的方案,以[a,b]的形式输出。Input原创 2010-12-09 23:41:00 · 235 阅读 · 0 评论 -
USACO: Fractions to Decimals
Fractions to Decimals<br /><br />Write a program that will accept a fraction of the form N/D, where N is the numerator and D is the denominator and print the decimal representation. If the decimal representation has a repeating sequence of digits, indicat原创 2010-12-18 00:47:00 · 207 阅读 · 0 评论 -
USACO: Factorials
Factorials<br /><br />The factorial of an integer N, written N!, is the product of all the integers from 1 through N inclusive. The factorial quickly becomes very large: 13! is too large to store in a 32-bit integer on most computers, and 70! is too large原创 2010-12-22 01:53:00 · 248 阅读 · 0 评论 -
USACO: Feed Ratios
Feed Ratios<br />1998 ACM Finals, Dan Adkins<br />Farmer John feeds his cows only the finest mixture of cow food, which has three components: Barley, Oats, and Wheat. While he knows the precise mixture of these easily mixable grains, he can not buy that mi原创 2010-12-24 20:20:00 · 267 阅读 · 0 评论 -
USACO: Closed Fences
Closed FencesA closed fence in the plane is a set of non-crossing, connected line segments with N corners (3 Every pair of adjacent vertices defines a side of the fence. Thus {xi yi xi+1 yi+1} is a side of the fence for all i in (1..N). For our purposes, N原创 2011-01-13 11:26:00 · 501 阅读 · 0 评论 -
USACO: Job Processing
Job ProcessingIOI'96A factory is running a production line that requires two operations to be performed on each job: first operation "A" then operation "B". Only a certain number of machines are capable of performing each operation. Figure 1 shows the o原创 2011-03-10 12:33:00 · 382 阅读 · 0 评论 -
USACO: The Primes
The Primes<br />IOI'94<br />In the square below, each row, each column and the two diagonals can be read as a five digit prime number. The rows are read from left to right. The columns are read from top to bottom. Both diagonals are read from left to right原创 2011-03-12 21:46:00 · 331 阅读 · 0 评论