自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 加工零件-execution

加工零件

2017-09-03 20:29:28 362

原创 [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 327

原创 [USACO5.5.2]Hidden Password

给定一个字符串,求其循环得到的len个字符串中,字典序最小的那个串的开头是原串的第几个字符

2017-08-22 09:26:58 192

原创 [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 315

原创 [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 246

原创 [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 182

原创 [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 220

原创 [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 187

原创 [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 210

原创 [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 242

原创 [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 188

原创 [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 212

原创 [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 295

原创 [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 231

原创 [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 245

原创 [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 353

原创 [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 219

原创 [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 220

原创 [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 328

原创 [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 302

原创 [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 306

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除