数学
下饭厨子
这个作者很懒,什么都没留下…
展开
-
zzulioj 1896 985的买饮料难题
985的买饮料难题Time Limit: 1 Sec Memory Limit:128 MBSubmit: 234 Solved: 124Description天气太热了,985制定了对未来的规划即第i天喝a[i]瓶饮料。为了节约开支,他打听到了第i天每瓶饮料的价格p[i]。为了不让自己的规划落空,他想知道这n天他至少要花多少钱。精明的985可以选择在任原创 2016-08-09 10:58:36 · 626 阅读 · 0 评论 -
zzulioj 1897 985的红绿灯难题
F: 985的红绿灯难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 208 Solved: 129SubmitStatusWeb BoardDescription已知红、绿、黄灯各持续r、g、y秒,985发现此时灯刚刚变绿,他想知道x秒后灯是什么颜色。Input第一行输入一个整数t,代表有t组测原创 2016-08-09 11:08:56 · 481 阅读 · 0 评论 -
zzulioj 1898 985的数字难题
985的数字难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 279 Solved: 100SubmitStatusWeb BoardDescription985有n个数,已知每次操作可以将其中不相同的两个数一个加一、一个减一,操作次数不限。问他最多可以得到多少个相同的数。Input第一行输入原创 2016-08-09 11:15:28 · 299 阅读 · 0 评论 -
light OJ Birthday Paradox.
Birthday Paradox.DescriptionSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23原创 2016-08-13 17:16:17 · 424 阅读 · 0 评论 -
POJ 1971 Parallelogram Counting
Parallelogram CountingThere are n distinct points in the plane, given by their integer coordinates. Find the number of parallelograms whose vertices lie on these points. In other words, find the n原创 2016-08-13 17:18:23 · 325 阅读 · 0 评论