- 博客(21)
- 收藏
- 关注
原创 [USACO5.5.3]Twofive
Twofive IOI 2001 In 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
442
原创 [USACO5.5.2]Hidden Password
给定一个字符串,求其循环得到的len个字符串中,字典序最小的那个串的开头是原串的第几个字符
2017-08-22 09:26:58
300
原创 [USACO5.5.1] Picture
Picture IOI 1998 A 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
414
原创 [USACO4.3.3]Letter Game
Letter Game IOI 1995 Figure 1: Each of the 26 lowercase letters and its value Letter 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
362
原创 [USACO4.3.2]Street Race
Street Race IOI'95 Figure 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
281
原创 [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
336
原创 [USACO4.2.3]Job Processing
Job Processing IOI'96 A 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
270
原创 [USACO4.2.2]The Perfect Stall
The Perfect Stall Hal Burch Farmer 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
308
原创 [USACO4.2.1]Drainage Ditches
Drainage Ditches Hal Burch Every 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
348
原创 [USACO4.1.2]Fence Loops
Fence Loops The 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
300
原创 [USACO4.1.1]Beef McNuggets
我用了一个我暂时 还没有在网上找到过的方法。 Beef McNuggets Hubert Chen Farmer 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
321
原创 [USACO3.4.4]rockers
Raucous Rockers You 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
402
原创 [USACO3.4.2]Electric Fence
Electric Fence Don Piele In 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
307
原创 [USACO3.4.1]heritage
American Heritage Farmer 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
353
原创 [USACO3.3.3]Camelot
转载请说明出处 Camelot IOI 98 Centuries 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
472
原创 [USACO3.3.2]Shopping Offers
Shopping Offers IOI'95 In 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
299
原创 [USACO3.3.4]Home on the Range
Home on the Range Farmer 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
312
原创 [USACO3.3.5]A Game
A Game IOI'96 - Day 1 Consider 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
469
原创 [USACO3.3.1]Riding the Fences
Riding the Fences Farmer 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
443
原创 [USACO3.2.6]Sweet Butter
Sweet Butter Greg Galperin -- 2001 Farmer 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
426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅