Codeforces Beta Round 3

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
3 Codeforces Beta Round 3 FINISHED False 7200 508442423 March 7, 2010, noon

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 5192 ) B Lorry PROGRAMMING greedy sortings 1900

A group of tourists is going to kayak and catamaran tour. A rented lorry has arrived to the boat depot to take kayaks and catamarans to the point of departure. It's known that all kayaks are of the same size (and each of them occupies the space of 1 cubic metre), and all catamarans are of the same size, but two times bigger than kayaks (and occupy the space of 2 cubic metres). Each waterborne vehicle has a particular carrying capacity, and it should be noted that waterborne vehicles that look the same can have different carrying capacities. Knowing the truck body volume and the list of waterborne vehicles in the boat depot (for each one its type and carrying capacity are known), find out such set of vehicles that can be taken in the lorry, and that has the maximum total carrying capacity. The truck body volume of the lorry can be used effectively, that is to say you can always put into the lorry a waterborne vehicle that occupies the space not exceeding the free space left in the truck body. The first line contains a pair of integer numbers n and v ( 1 ≤ n ≤ 10 5 ; 1 ≤ v ≤ 10 9 ), where n is the number of waterborne vehicles in the boat depot, and v is the truck body volume of the lorry in cubic metres. The following n lines contain the information about the waterborne vehicles, that is a pair of numbers t i , p i ( 1 ≤ t i ≤ 2 ; 1 ≤ p i ≤ 10 4 ), where t i is the vehicle type ( 1 – a kayak, 2 – a catamaran), and p i is its carrying capacity. The waterborne vehicles are enumerated in order of their appearance in the input file. In the first line print the maximum possible carrying capacity of the set. In the second line print a string consisting of the numbers of the vehicles that make the optimal set. If the answer is not unique, print any of them.

Tutorials

Codeforces Beta Round #3 — Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
12482 khanhptnk B March 7, 2010, 12:34 p.m. OK FPC TESTS 32 80 2867200 1900
12346 yt_72 B March 7, 2010, 12:26 p.m. OK FPC TESTS 32 90 4096000 1900
12870 LayCurse B March 7, 2010, 12:59 p.m. OK GNU C TESTS 32 110 2764800 1900
12869 LayCurse B March 7, 2010, 12:59 p.m. OK GNU C TESTS 32 110 2764800 1900
13168 halwhite B March 7, 2010, 1:15 p.m. OK GNU C++ TESTS 32 60 3276800 1900
12450 hos.lyric B March 7, 2010, 12:32 p.m. OK GNU C++ TESTS 32 60 3584000 1900
13632 yayamao B March 7, 2010, 1:49 p.m. OK GNU C++ TESTS 32 90 2355200 1900
12240 iwiwi B March 7, 2010, 12:19 p.m. OK GNU C++ TESTS 32 90 2662400 1900
12206 ilyakor B March 7, 2010, 12:17 p.m. OK GNU C++ TESTS 32 90 2662400 1900
12496 ACube B March 7, 2010, 12:35 p.m. OK GNU C++ TESTS 32 90 2764800 1900
13029 ir5 B March 7, 2010, 1:08 p.m. OK GNU C++ TESTS 32 90 3379200 1900
13450 014234 B March 7, 2010, 1:33 p.m. OK GNU C++ TESTS 32 110 2048000 1900
12539 a70babat B March 7, 2010, 12:38 p.m. OK GNU C++ TESTS 32 110 2355200 1900
12251 ACRush B March 7, 2010, 12:20 p.m. OK GNU C++ TESTS 32 110 2355200 1900
12285 MaxBuzz B March 7, 2010, 12:23 p.m. OK Java 6 TESTS 32 220 30617600 1900
12192 ivan.popelyshev B March 7, 2010, 12:16 p.m. OK Java 6 TESTS 32 220 31641600 1900
12417 izbyshev B March 7, 2010, 12:30 p.m. OK Java 6 TESTS 32 230 30617600 1900
12295 wata B March 7, 2010, 12:23 p.m. OK Java 6 TESTS 32 230 30617600 1900
12394 alexey.enkov B March 7, 2010, 12:29 p.m. OK Java 6 TESTS 32 250 30617600 1900
12143 Petr B March 7, 2010, 12:14 p.m. OK Java 6 TESTS 32 250 30617600 1900
13224 andrewzta B March 7, 2010, 1:19 p.m. OK Java 6 TESTS 32 250 31641600 1900
13167 SpookyCookie B March 7, 2010, 1:15 p.m. OK Java 6 TESTS 32 310 39116800 1900
13063 PanZverski B March 7, 2010, 1:10 p.m. OK MS C++ TESTS 32 90 2662400 1900
12396 permin B March 7, 2010, 12:29 p.m. OK MS C++ TESTS 32 90 2764800 1900
12797 Seyaua B March 7, 2010, 12:55 p.m. OK MS C++ TESTS 32 90 3174400 1900
12204 natalia B March 7, 2010, 12:17 p.m. OK MS C++ TESTS 32 90 3379200 1900
13584 alexander.musman B March 7, 2010, 1:45 p.m. OK MS C++ TESTS 32 90 4403200 1900
12306 GARNETCROW_a.k.a_hhanger B March 7, 2010, 12:24 p.m. OK MS C++ TESTS 32 110 2355200 1900
12317 cjf00000 B March 7, 2010, 12:24 p.m. OK MS C++ TESTS 32 110 2457600 1900
12135 e-maxx B March 7, 2010, 12:13 p.m. OK MS C++ TESTS 32 110 2560000 1900
13291 ferr B March 7, 2010, 1:22 p.m. OK MS C++ TESTS 32 110 2662400 1900
13229 gojira B March 7, 2010, 1:19 p.m. OK MS C++ TESTS 32 110 2662400 1900

remove filters

Back to search problems