原创 Name That Number

Problem: Name That Number Among the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers

原创 Packing Rectangles

Problem: Packing RectanglesIOI 95 The six basic layouts of four rectangles Four rectangles are given. Find the small

原创 Calf Flac

Problem:Calf Flac It is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with

原创 Arithmetic Progressions

Problem: Arithmetic Progressions An arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=

原创 Greedy Gift Givers

Problem: Greedy Gift Givers A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money.

原创 Your Ride Is Here

Problem: Your Ride Is Here   It is a well-known fact that behind every good comet is a UFO. These UFOs often come to c

原创 第(前)k大數問題

第(前)k數問題 轉自:http://summerbell.javaeye.com/blog/510394 所謂“第(前)k大數問題”指的是在長度爲n(n>=k)的亂序數組中S找出從大到小順序的第(前)k個數的問題。   解法1

原创 Barn Repair

Problem: Barn Repair It was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John

原创 Prime Cryptarithm

Problem: Prime Cryptarithm The following cryptarithm is a multiplication problem that can be solved by substituting di

原创 Transformations

Problem:Transformations A square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into

原创 Broken Necklace

Problem:   Broken Necklace You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, oth

原创 The Clocks

Problem: The ClocksIOI'94 - Day 2 Consider nine clocks arranged in a 3x3 array thusly: |-------| |-------| |--

原创 Friday the Thirteenth

Problem:   Friday the Thirteenth   點贊 收藏 分享 文章舉報 iby07 發佈了34 篇原創文章 · 獲贊 0 · 訪問量 1萬+

原创 Mixing Milk

Problem: Mixing Milk Since milk packaging is such a low margin business, it is important to keep the price of the raw p

原创 Party Lamps

Problem: http://ace.delos.com/usacoprob2?a=GDaP3qeGiYp&S=lamps My Answer: /* ID:iby071 TASK:lamps LANG:C++ */ #includ