- 博客(21)
- 收藏
- 关注
原创 [USACO5.5.3]Twofive
TwofiveIOI 2001In order to teach her young calvess the order of the letters in the alphabet, Bessie has come up with a game to play with them. The calves are given a 5 x 5 grid on which they can p
2017-08-22 20:20:51
371
原创 [USACO5.5.2]Hidden Password
给定一个字符串,求其循环得到的len个字符串中,字典序最小的那个串的开头是原串的第几个字符
2017-08-22 09:26:58
252
原创 [USACO5.5.1] Picture
PictureIOI 1998A number, N (1 <= N < 5000), of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangl
2017-08-22 07:38:59
355
原创 [USACO4.3.3]Letter Game
Letter Game IOI 1995 Figure 1: Each of the 26 lowercase letters and its valueLetter games are popular at home and on television. In one version of the game, every letter has a value, and you ...
2017-08-08 20:02:47
294
原创 [USACO4.3.2]Street Race
Street Race IOI'95Figure 1 gives an example of a course for a street race. You see some points, labeled from 0 to N (here, N=9), and some arrows connecting them. Point 0 is the start of the r...
2017-08-07 21:22:04
225
原创 [USACO4.3.1]Buy Low, Buy Lower
Buy Low, Buy Lower The advice to "buy low" is half the formula to success in the stock market. But to be considered a great investor you must also follow this problems' advice:"Buy low, buy lowe...
2017-08-06 21:23:05
281
原创 [USACO4.2.3]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 c
2017-08-06 21:03:07
225
原创 [USACO4.2.2]The Perfect Stall
The Perfect StallHal BurchFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all the stalls in the ne
2017-08-06 20:10:09
256
原创 [USACO4.2.1]Drainage Ditches
Drainage DitchesHal BurchEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a
2017-08-06 19:59:08
280
原创 [USACO4.1.2]Fence Loops
Fence LoopsThe fences that surround Farmer Brown's collection of pastures have gotten out of control. They are made up of straight segments from 1 through 200 feet long that join together only at
2017-08-06 19:54:08
240
原创 [USACO4.1.1]Beef McNuggets
我用了一个我暂时 还没有在网上找到过的方法。Beef McNuggetsHubert ChenFarmer Brown's cows are up in arms, having heard that McDonalds is considering the introduction of a new product: Beef McNuggets. The cows are tr
2017-08-06 13:21:35
247
原创 [USACO3.4.4]rockers
Raucous RockersYou just inherited the rights to N (1 <= N <= 20) previously unreleased songs recorded by the popular group Raucous Rockers. You plan to release a set of M (1 <= M <= 20) compact
2017-08-05 22:02:24
345
原创 [USACO3.4.2]Electric Fence
Electric FenceDon PieleIn this problem, `lattice points' in the plane are points with integer coordinates.In order to contain his cows, Farmer John constructs a triangular electric fence by stri
2017-08-04 22:02:07
267
原创 [USACO3.4.1]heritage
American HeritageFarmer John takes the heritage of his cows very seriously. He is not, however, a truly fine bookkeeper. He keeps his cow genealogies as binary trees and, instead of writing them i
2017-08-04 21:51:54
306
原创 [USACO3.3.3]Camelot
转载请说明出处CamelotIOI 98Centuries ago, King Arthur and the Knights of the Round Table used to meet every year on New Year's Day to celebrate their fellowship. In remembrance of these events, we co
2017-08-04 20:58:47
411
原创 [USACO3.3.2]Shopping Offers
Shopping OffersIOI'95In a certain shop, each kind of product has an integer price. For example, the price of a flower is 2 zorkmids (z) and the price of a vase is 5z. In order to attract more cust
2017-08-01 20:12:44
258
原创 [USACO3.3.4]Home on the Range
Home on the RangeFarmer John grazes his cows on a large, square field N (2 <= N <= 250) miles on a side (because, for some reason, his cows will only graze on precisely square land segments). Regr
2017-08-01 19:10:43
256
原创 [USACO3.3.5]A Game
A GameIOI'96 - Day 1Consider the following two-player game played with a sequence of N positive integers (2 <= N <= 100) laid onto a 1 x N game board. Player 1 starts the game. The players move al
2017-07-31 22:14:58
384
原创 [USACO3.3.1]Riding the Fences
Riding the FencesFarmer John owns a large number of fences that must be repaired annually. He traverses the fences by riding a horse along each and every one of them (and nowhere else) and fixing
2017-07-31 21:57:52
353
原创 [USACO3.2.6]Sweet Butter
Sweet ButterGreg Galperin -- 2001Farmer John has discovered the secret to making the sweetest butter in all of Wisconsin: sugar. By placing a sugar cube out in the pastures, he knows the N (1 <=
2017-07-31 20:11:42
351
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人