Competitive Programming

ICPC 2014

All 12 ICPC problems from 2014, each with a statement view, editorial, and C++ implementation.

12 problem pages
12 statement text files
12 statement PDFs
May 21, 2026 most recently updated solution

Problem set

Each entry below goes straight to the public problem page, with the statement, editorial, code, and raw resources kept together.

ICPC 2014

A. Baggage

A

An airline has two flights leaving at about the same time from ICPCity, one to city B and one to city A. The airline also has n counters where passengers check their baggage. At each counter there is a pair of identical baggage bins, one for city B and one...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

B. Buffed Buffet

B

You are buying lunch at a buffet. A number of different dishes are available, and you can mix and match them to your heart’s desire. Some of the dishes, such as dumplings and roasted potatoes, consist of pieces of roughly equal size, and you can pick an int...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

C. Crane Balancing

C

Wherever there is large-scale construction, you will find cranes that do the lifting. One hardly ever thinks about what marvelous examples of engineering cranes are: a structure of (relatively) little weight that can lift much heavier loads. But even the be...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

D. Game Strategy

D

Alice and Bob are playing a board game. The board is divided into positions labeled a, b, c, d, . . . and the players use a gamepiece to mark the current position. Each round of the game consists of two steps: 1. Alice makes a choice. Depending on the curre...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

E. Maze Reduction

E

Jay runs a small carnival that has various rides and attractions. Unfortunately, times are tough. A recent roller coaster accident, flooding in the restrooms, and an unfortunate clown incident have given Jay’s carnival a bad reputation with the public. With...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

F. Messenger

F

Misha needs to send packages to his friend Nadia. Both of them often travel across Russia, which is very large. So they decide to hire a messenger. Since the cost of the messenger service depends on the time it takes to deliver the package, they need your h...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

G. Metal Processing Plant

G

Yulia works for a metal processing plant in Eka- terinburg. This plant processes ores mined in the Ural mountains, extracting precious metals such as chalcopyrite, platinum and gold from the ores. Every month the plant receives n shipments of un- processed...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

H. Pachinko

H

You have been hired by Addictive Coin Machines to help design the next hit in their line of eye-catching, coin-guzzling, just-one-more-try Pachinko machines for casinos around the world. Playing a Pachinko machine involves launching balls into a rectangular...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

I. Sensor Network

I

A wireless sensor network consists of au- tonomous sensors scattered in an environment where they monitor conditions such as temper- ature, sound, and pressure. Samantha is a researcher working on the Amazon Carbon-dioxide Measurement (ACM) project. In this...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

J. Skiing

J

As you know, the ACM ICPC is not the only major sporting event taking place in Russia this year. Several months ago, the 2014 Winter Olympics were held in Sochi, which is about 3 000 km from Ekaterinburg. In an increasing number of sports, it is not only th...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

K. Surveillance

K

The International Corporation for Protection and Control (ICPC) develops efficient technology for, well, protection and control. Naturally, they are keen to have their own headquarters protected and controlled. Viewed from above, the headquarters building h...

TeX C++ Statement text Statement PDF
Open problem page
ICPC 2014

L. Wire Crossing

L

Moore’s Law states that the number of transistors on a chip will double every two years. Amazingly, this law has held true for over half a century. Whenever current technology no longer allowed more growth, researchers have come up with new manufacturing te...

TeX C++ Statement text Statement PDF
Open problem page