
usaco
文章平均质量分 89
max_kibble
这个作者很懒,什么都没留下…
展开
-
usaco6.5.5 Checker Challenge
一 原题Checker ChallengeExamine the 6x6 checkerboard below and note that the six checkers are arranged on the board so that one and only one is placed in each row and each column, and there i原创 2018-02-25 12:18:22 · 288 阅读 · 0 评论 -
usaco6.1.3 Cow XOR
一 原题二 分析三 代码先附上我蠢蠢的会爆内存的trie树代码:/*ID:maxkibb3LANG:C++PROB:cowxor*/#include#include#includeconst int MAX = 1e5 + 5;int N, Arr[MAX], Xor[MAX];struct Node { int val, left, right;原创 2017-09-24 18:52:52 · 305 阅读 · 0 评论 -
usaco6.1.2 A Rectangular Barn
一 原题A Rectangular BarnMircea Pasoi -- 2003Ever the capitalist, Farmer John wants to extend his milking business by purchasing more cows. He needs space to build a new barn for the cows.F原创 2017-09-21 20:45:05 · 427 阅读 · 0 评论 -
usaco5.4.3 Telecowmunication
一 原题TelecowmunicationFarmer John's cows like to keep in touch via email so they have created a network of cowputers so that they can intercowmunicate. These machines route email so that if the原创 2017-05-20 22:34:51 · 775 阅读 · 0 评论 -
usaco5.4.1 Canada Tour
一 原题二 分析三 代码运行结果:USER: Qi Shen [maxkibb3]TASK: tourLANG: C++Compiling...Compile: OKExecuting... Test 1: TEST OK [0.000 secs, 4240 KB] Test 2: TEST OK [0.000 secs, 4240 KB] Te原创 2017-05-18 17:41:38 · 500 阅读 · 0 评论 -
usaco5.4.2 Character Recognition
一 原题Character RecognitionThis problem requires you to write a program that performs character recognition.Each ideal character image has 20 lines of 20 digits. Each digit is a `0' or a `1'.原创 2017-05-19 14:17:17 · 294 阅读 · 0 评论 -
usaco5.3.4 Big Barn
一 原题Big BarnA Special TreatFarmer John wants to place a big square barn on his square farm. Hehates to cut down trees on his farm and wants to find a location for hisbarn that enables him原创 2017-05-14 14:36:22 · 263 阅读 · 0 评论 -
usaco1.3.4 Wormhole
一. 原题WormholesFarmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 <= N <= 12, N even) to materialize on his farm, each located a原创 2016-11-29 22:39:32 · 672 阅读 · 0 评论 -
usaco5.3.2 Window Area
一 原题Window AreaIV Balkan OlympiadYou've just be assigned the project of implemented a windowing interface. This windowing interface is fairly simple, and fortunately, you don't have to display原创 2017-05-12 21:12:50 · 330 阅读 · 0 评论 -
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原创 2017-05-23 00:50:37 · 308 阅读 · 0 评论 -
usaco5.3.1 Milk Measuring
一 原题Milk MeasuringHal BurchFarmer John must measure Q (1 Farmer John has always been frugal. He is at the cow hardware store where he must purchase a set of pails with which to measure out Q原创 2017-05-11 15:05:57 · 319 阅读 · 0 评论 -
usaco5.1.2 Starry Night
一 原题Starry NightIOI 98High up in the night sky, the shining stars appear in clusters ofvarious shapes. Acluster is a non-empty group of neighbouringstars, adjacent in horizontal, vertical原创 2017-05-02 15:11:01 · 540 阅读 · 0 评论 -
usaco5.1.1 Fencing the Cows
一 原题Fencing the CowsHal BurchFarmer John wishes to build a fence to contain his cows, but he's a bit short on cash right. Any fence he builds must contain all of the favorite grazing spots for原创 2017-05-01 22:31:18 · 257 阅读 · 0 评论 -
usaco4.4.3 Frame Up
一 原题Frame UpConsider the following five picture frames shown on an 9 x 8 array:........ ........ ........ ........ .CCC....EEEEEE.. ........ ........ ..BBBB.. .C.C....E....原创 2017-05-01 14:46:17 · 281 阅读 · 0 评论 -
usaco4.4.1 Shuttle Puzzle
一 原题Shuttle PuzzleTraditionalThe Shuttle Puzzle of size 3 consists of 3 white marbles, 3 black marbles, and a strip of wood with 7 holes. The marbles of the same color are placed in the holes原创 2017-02-23 14:41:45 · 7864 阅读 · 0 评论 -
usaco5.3.3 Network of Schools
一 原题Network of SchoolsIOI '96 Day 1 Problem 3A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of school原创 2017-05-14 00:01:23 · 280 阅读 · 0 评论 -
usaco5.5.3 Two Five
一 原题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 th原创 2017-09-18 13:54:21 · 537 阅读 · 0 评论 -
usaco6.1.1 Postal Vans
一 原题Postal VansACM South Pacific Region -- 2003Tiring of their idyllic fields, the cows have moved to a new suburb. The suburb is a rectangular grid of streets with a post office at its原创 2017-09-20 20:04:43 · 484 阅读 · 0 评论 -
usaco5.1.3 Musical Themes
一 原题Musical ThemesBrian DeanA musical melody is represented as a sequence of N (1 <= N <= 5000) notes that are integers in the range 1..88, each representing a key on the piano. It is unfortunat...原创 2017-05-04 11:21:14 · 378 阅读 · 0 评论 -
usaco6.5.4 The Clocks
一 原题The ClocksIOI'94 - Day 2Consider nine clocks arranged in a 3x3 array thusly:|-------| |-------| |-------| | | | | | | | |---O | |---O | |原创 2018-02-25 11:52:20 · 242 阅读 · 0 评论 -
usaco6.5.3 Betsy's Tour
一 原题Betsy's TourDon PieleA square township has been divided up into N2 square plots (1 <= N <= 7). The Farm is located in the upper left plot and the Market is located in the lower left plot原创 2018-02-25 11:16:40 · 538 阅读 · 0 评论 -
usaco6.5.1 All Latin Squares
一 原题All Latin SquaresA square arrangement of numbers1 2 3 4 52 1 4 5 33 4 5 1 24 5 2 3 15 3 1 2 4is a 5 x 5 Latin Square because each whole number from 1 to 5 appears once and...原创 2018-01-06 18:45:44 · 522 阅读 · 0 评论 -
usaco6.4.3 Wisconsin Squares
一 原题Wisconsin SquaresIt's spring in Wisconsin and time to move the yearling calves to the yearling pasture and last year's yearlings to the greener pastures of the north 40.Farmer John has原创 2018-01-05 20:30:13 · 347 阅读 · 0 评论 -
usaco1.1.4 Broken Necklace
usaco1.1.4 Broken Necklace题解原创 2016-11-25 18:56:41 · 320 阅读 · 0 评论 -
usaco6.4.2 Electric Fences
一 原题Electric FencesKolstad & SchrijversFarmer John has decided to construct electric fences. He has fenced his fields into a number of bizarre shapes and now must find the optimal place to l原创 2017-12-23 00:30:50 · 275 阅读 · 0 评论 -
usaco6.3.3 Cowcycles
一 原题CowcyclesOriginally by Don Gillies[International readers should note that some words are puns on cows.]Having made a fortune on Playbov magazine, Hugh Heifer has moved from his original原创 2017-12-14 11:05:10 · 262 阅读 · 0 评论 -
usaco6.3.1 Fence Rails
一 原题Fence RailsBurch, Kolstad, and SchrijversFarmer John is trying to erect a fence around part of his field. He has decided on the shape of the fence and has even already installed the posts,原创 2017-11-01 23:04:50 · 272 阅读 · 0 评论 -
usaco6.3.2 Cryptcowgraphy
一 原题CryptcowgraphyBrian DeanThe cows of Farmer Brown and Farmer John are planning a coordinated escape from their respective farms and have devised a method of encryption to protect their writ原创 2017-11-04 01:39:32 · 329 阅读 · 0 评论 -
usaco6.2.3 Shaping Regions
一 原题Shaping RegionsN opaque rectangles (1 <= N <= 1000) of various colors are placed on a white sheet of paper whose size is A wide by B long. The rectangles are put with their sides paralle原创 2017-10-15 00:41:12 · 249 阅读 · 0 评论 -
usaco6.2.2 Packing Rectangles
一 原题Packing RectanglesIOI 95 The six basic layouts of four rectanglesFour rectangles are given. Find the smallest enclosing (new) rectangle into which these four may be fitted without over原创 2017-10-13 16:18:36 · 253 阅读 · 0 评论 -
usaco6.2.1 Calf Flac
一 原题Calf FlacIt is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindr...原创 2017-10-11 11:19:25 · 214 阅读 · 0 评论 -
usaco5.5.2 Hidden Password
一 原题Hidden PasswordACM South Eastern Europe -- 2003Sometimes the programmers have very strange ways of hiding their passwords. Billy "Hacker" Geits chooses a string S composed of L (5 <= L原创 2017-07-28 19:10:40 · 405 阅读 · 0 评论 -
usaco3.4.3 Raucous 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) co原创 2017-02-13 17:09:15 · 354 阅读 · 0 评论 -
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原创 2017-02-13 16:43:27 · 289 阅读 · 0 评论 -
usaco3.4.1 American 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 writin原创 2017-02-13 15:04:40 · 348 阅读 · 0 评论 -
usaco3.1.4 Contact
一 原题ContactIOI'98The cows have developed a new interest in scanning the universe outside their farm with radiotelescopes. Recently, they noticed a very curious microwave pulsing emission sent原创 2016-12-22 21:58:15 · 801 阅读 · 0 评论 -
usaco2.4.2 Overfencing
一 原题OverfencingKolstad and SchrijversFarmer John went crazy and created a huge maze of fences out in a field. Happily, he left out two fence segments on the edges, and thus created two "exits"原创 2016-12-16 01:47:57 · 286 阅读 · 0 评论 -
usaco2.3.4 Money Systems
一 原题Money SystemsThe cows have not only created their own government but they have chosen to create their own money system. In their own rebellious way, they are curious about values of coinag原创 2016-12-09 16:13:39 · 306 阅读 · 0 评论 -
usaco2.3.1 Longest Prefix
一 原题Longest PrefixIOI'96The structure of some biological objects is represented by the sequence of their constituents, where each part is denoted by an uppercase letter. Biologists are interes原创 2016-12-09 09:35:58 · 327 阅读 · 0 评论 -
usaco2.2.4 Party Lamps
一 原题Party LampsIOI 98To brighten up the gala dinner of the IOI'98 we have a set of N (10 N.The lamps are connected to four buttons:Button 1: When this button is pressed, all the lamps原创 2016-12-08 22:55:33 · 333 阅读 · 0 评论