UVALive
peach_yang
这个作者很懒,什么都没留下…
展开
-
UVALive 2911 Maximum
Let x1, x2, … , xm be real numbers satisfying the following conditions: a)- 1/√a ≤ xi ≤√a; b) x1 + x2 + … + xm = b ∗√a for some integers a and b (a > 0). Determine the maximum value of x p 1 + x原创 2016-07-22 21:18:59 · 225 阅读 · 0 评论 -
UVALive 2756 Crazy tea party
Question: Description Download as PDF n participants of �crazy tea party� sit around the table. Each minute one pair of neighbors can change their places. Find the minimum time (in minutes) required原创 2016-07-22 21:24:57 · 526 阅读 · 0 评论 -
UVALive 6834 Shopping(开箱拿钥匙题型)
Question: Your friend will enjoy shopping. She will walk through a mall along a straight street, where N individual shops (numbered from 1 to N) are aligned at regular intervals. Each shop has one do原创 2016-09-05 22:42:04 · 345 阅读 · 0 评论 -
UVALive 6832 Bit String Reordering
Question: You have to reorder a given bit string as specified. The only operation allowed is swapping adjacent bit pairs. Please write a program that calculates the minimum number of swaps required.原创 2016-09-05 22:50:43 · 369 阅读 · 0 评论