VK Cup 2012 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
164 VK Cup 2012 Round 3 FINISHED False 7200 403973686 April 8, 2012, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 906 ) C Machine Programming PROGRAMMING flows graphs 2400

B'One remarkable day company "X" received k machines. And they were not simple machines, they were mechanical programmers! This was the last unsuccessful step before switching to android programmers, but that 's another story. The company has now n tasks, for each of them we know the start time of its execution si, the duration of its execution ti, and the company profit from its completion ci. Any machine can perform any task, exactly one at a time. If a machine has started to perform the task, it is busy at all moments of time from si to si xe2 x80 x89+ xe2 x80 x89ti xe2 x80 x89- xe2 x80 x891, inclusive, and it cannot switch to another task. You are required to select a set of tasks which can be done with these k machines, and which will bring the maximum total profit. The first line contains two integer numbers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950) -- the numbers of tasks and machines, correspondingly. The next n lines contain space-separated groups of three integers si, xe2 x80 x89ti, xe2 x80 x89ci (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89si, xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106), si is the time where they start executing the i-th task, ti is the duration of the i-th task and ci is the profit of its execution. Print n integers x1, xe2 x80 x89x2, xe2 x80 x89..., xe2 x80 x89xn. Number xi should equal 1, if task i should be completed and otherwise it should equal 0. If there are several optimal solutions, print any of them. In the first sample the tasks need to be executed at moments of time 2 ... 8, 1 ... 3 and 4 ... 4, correspondingly. The first task overlaps with the second and the third ones, so we can execute either task one (profit 5) or tasks two and three (profit 6).'...

Tutorials

VK Cup 2012 Round 3 — Разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
1504211 coolinging C April 8, 2012, 5:57 p.m. OK FPC TESTS 84 90 21094400 2400
1499353 sillycross C April 8, 2012, 3:27 p.m. OK FPC TESTS 84 160 12697600 2400
10516991 vjudge4 C March 29, 2015, 2:49 p.m. OK FPC TESTS 84 434 9523200 2400
17399173 jiangyx C April 20, 2016, 12:26 p.m. OK FPC TESTS 84 872 2252800 2400
1506171 alexej C April 9, 2012, 7:09 a.m. OK FPC TESTS 84 1010 1433600 2400
1901141 vlad107 C July 15, 2012, 3:38 p.m. OK FPC TESTS 84 1480 69836800 2400
1540547 blackapple C April 16, 2012, 3:27 a.m. OK FPC TESTS 84 1560 1331200 2400
1500388 zanoes C April 8, 2012, 3:46 p.m. OK FPC TESTS 84 1700 13209600 2400
2637571 bm_anas C Nov. 24, 2012, 12:48 p.m. OK GNU C++ TESTS 84 46 512000 2400
2637551 bm_anas C Nov. 24, 2012, 12:44 p.m. OK GNU C++ TESTS 84 46 512000 2400
2637510 bm_anas C Nov. 24, 2012, 12:33 p.m. OK GNU C++ TESTS 84 46 512000 2400
2586764 bm_anas C Nov. 18, 2012, 10:52 p.m. OK GNU C++ TESTS 84 46 512000 2400
1671761 marxi C May 10, 2012, 6:17 a.m. OK GNU C++ TESTS 84 50 1536000 2400
1504382 prpr C April 8, 2012, 6:07 p.m. OK GNU C++ TESTS 84 50 1945600 2400
1567526 baukaman C April 17, 2012, 5:17 p.m. OK GNU C++ TESTS 84 50 5017600 2400
1539713 baukaman C April 15, 2012, 11:36 a.m. OK GNU C++ TESTS 84 50 5017600 2400
1499953 hos.lyric C April 8, 2012, 3:38 p.m. OK GNU C++ TESTS 84 50 5017600 2400
1632844 voover C April 27, 2012, 10:46 p.m. OK GNU C++ TESTS 84 50 6348800 2400
2691655 hex539 C Dec. 3, 2012, 3:25 p.m. OK GNU C++0x TESTS 84 46 921600 2400
2691518 hex539 C Dec. 3, 2012, 3 p.m. OK GNU C++0x TESTS 84 46 1024000 2400
1671333 iammmann C May 9, 2012, 5:31 p.m. OK GNU C++0x TESTS 84 60 1638400 2400
1670677 iammmann C May 9, 2012, 11:11 a.m. OK GNU C++0x TESTS 84 60 1638400 2400
1509872 Archon.JK C April 11, 2012, 9:16 a.m. OK GNU C++0x TESTS 84 60 1638400 2400
1509849 Archon.JK C April 11, 2012, 9 a.m. OK GNU C++0x TESTS 84 60 1638400 2400
1509848 Archon.JK C April 11, 2012, 8:59 a.m. OK GNU C++0x TESTS 84 60 1638400 2400
9222078 mruxim C Dec. 22, 2014, 9:55 a.m. OK GNU C++0x TESTS 84 62 204800 2400
9664133 HellKitsune C Feb. 1, 2015, 10:29 a.m. OK GNU C++0x TESTS 84 62 307200 2400
2685269 hex539 C Dec. 1, 2012, 11:19 p.m. OK GNU C++0x TESTS 84 62 921600 2400
13769991 pranjal.ssh C Oct. 21, 2015, 11:18 a.m. OK GNU C++11 TESTS 84 62 409600 2400
33957314 djq_cpp C Jan. 6, 2018, 6:48 a.m. OK GNU C++11 TESTS 84 62 2662400 2400
18894522 RNS_CUS C July 5, 2016, 6:59 a.m. OK GNU C++11 TESTS 84 62 39321600 2400
39448110 neal C June 21, 2018, 12:31 a.m. OK GNU C++11 TESTS 84 92 307200 2400
39400082 neal C June 19, 2018, 6:13 a.m. OK GNU C++11 TESTS 84 92 307200 2400
18880072 RNS_CUS C July 4, 2016, 9:15 a.m. OK GNU C++11 TESTS 84 92 614400 2400
18109197 just_some_shit C May 26, 2016, 7:04 p.m. OK GNU C++11 TESTS 84 92 3276800 2400
33998463 thc C Jan. 8, 2018, 7:10 a.m. OK GNU C++11 TESTS 84 92 122880000 2400
39448152 neal C June 21, 2018, 12:35 a.m. OK GNU C++11 TESTS 84 122 307200 2400
39510943 neal C June 22, 2018, 9:04 a.m. OK GNU C++11 TESTS 84 122 409600 2400
30251272 akshit.lite C Sept. 10, 2017, 4:22 p.m. OK GNU C++14 TESTS 84 62 716800 2400
28695558 fengsuiyan C July 19, 2017, 12:02 p.m. OK GNU C++14 TESTS 84 62 2252800 2400
33979350 ugly2333 C Jan. 7, 2018, 8:57 a.m. OK GNU C++14 TESTS 84 62 2457600 2400
22693936 PMichalak C Dec. 4, 2016, 10:51 a.m. OK GNU C++14 TESTS 84 62 10547200 2400
69044932 ACMHIT C Jan. 18, 2020, 10:51 a.m. OK GNU C++14 TESTS 84 92 409600 2400
69044739 ACMHIT C Jan. 18, 2020, 10:49 a.m. OK GNU C++14 TESTS 84 92 409600 2400
33033226 vjudge2 C Dec. 8, 2017, 7:19 p.m. OK GNU C++14 TESTS 84 92 2355200 2400
21369737 e.a.shlykov C Oct. 11, 2016, 8:56 p.m. OK GNU C++14 TESTS 84 92 2662400 2400
33033137 Damon C Dec. 8, 2017, 7:16 p.m. OK GNU C++14 TESTS 84 124 2355200 2400
36126813 dancinggrass C March 9, 2018, 6:30 p.m. OK GNU C++14 TESTS 84 124 10342400 2400
46336551 Jakube C Nov. 28, 2018, 4:15 p.m. OK GNU C++17 TESTS 84 62 307200 2400
66477387 neal C Dec. 7, 2019, 9:51 p.m. OK GNU C++17 TESTS 84 92 409600 2400
66477426 neal C Dec. 7, 2019, 9:52 p.m. OK GNU C++17 TESTS 84 92 512000 2400
43254493 ruo C Sept. 22, 2018, 1:10 p.m. OK GNU C++17 TESTS 84 92 716800 2400
43071088 fblogy C Sept. 19, 2018, 9:15 a.m. OK GNU C++17 TESTS 84 92 1945600 2400
43071084 fblogy C Sept. 19, 2018, 9:15 a.m. OK GNU C++17 TESTS 84 92 1945600 2400
61061816 RedNextCentury C Sept. 22, 2019, 9:42 a.m. OK GNU C++17 TESTS 84 92 13721600 2400
46433240 vntshh C Dec. 1, 2018, 7:12 a.m. OK GNU C++17 TESTS 84 92 37376000 2400
43343177 vjudge4 C Sept. 23, 2018, 6:48 p.m. OK GNU C++17 TESTS 84 124 76492800 2400
66494641 Mn619 C Dec. 8, 2019, 9:58 a.m. OK GNU C++17 TESTS 84 278 921600 2400
1643839 logN C April 29, 2012, 10:19 a.m. OK Java 6 TESTS 84 250 43622400 2400
1643836 logN C April 29, 2012, 10:17 a.m. OK Java 6 TESTS 84 250 43622400 2400
1651453 miv91 C May 3, 2012, 7:58 p.m. OK Java 6 TESTS 84 270 43622400 2400
1651429 logN C May 3, 2012, 7:30 p.m. OK Java 6 TESTS 84 270 43622400 2400
1651427 logN C May 3, 2012, 7:26 p.m. OK Java 6 TESTS 84 270 43622400 2400
1651417 logN C May 3, 2012, 7:14 p.m. OK Java 6 TESTS 84 270 43622400 2400
1643854 logN C April 29, 2012, 10:25 a.m. OK Java 6 TESTS 84 270 43622400 2400
1643832 logN C April 29, 2012, 10:16 a.m. OK Java 6 TESTS 84 270 43622400 2400
1502549 wata C April 8, 2012, 4:43 p.m. OK Java 6 TESTS 84 280 43622400 2400
1503118 TomConerly C April 8, 2012, 4:57 p.m. OK Java 6 TESTS 84 310 44032000 2400
1504293 OgieKako C April 8, 2012, 6:02 p.m. OK Java 7 TESTS 84 200 45158400 2400
3728921 santjuan C May 17, 2013, 3:55 a.m. OK Java 7 TESTS 84 234 204800 2400
16294302 sroyal C Feb. 23, 2016, 2:41 p.m. OK Java 7 TESTS 84 560 0 2400
4330016 trunghieu11 C Aug. 23, 2013, 5:55 p.m. OK Java 7 TESTS 84 592 204800 2400
1506785 Madiyar C April 9, 2012, 12:41 p.m. OK Java 7 TESTS 84 750 45158400 2400
1679720 Amarchuk C May 10, 2012, 7:29 p.m. OK Java 7 TESTS 84 980 45363200 2400
1679564 Amarchuk C May 10, 2012, 6:57 p.m. OK Java 7 TESTS 84 980 45363200 2400
1786475 Amarchuk C June 11, 2012, 8:27 p.m. OK Java 7 TESTS 84 1000 45363200 2400
1786467 Amarchuk C June 11, 2012, 8:17 p.m. OK Java 7 TESTS 84 1010 45363200 2400
1786418 Amarchuk C June 11, 2012, 7:51 p.m. OK Java 7 TESTS 84 1010 45363200 2400
1651644 gmpota C May 4, 2012, 3:47 a.m. OK Mono C# TESTS 84 270 19251200 2400
1511188 it4.kp C April 12, 2012, 10:45 a.m. OK Mono C# TESTS 84 580 24268800 2400
1511134 it4.kp C April 12, 2012, 10:01 a.m. OK Mono C# TESTS 84 4950 84787200 2400
5088465 AleksanderBalobanov C Nov. 13, 2013, 2:13 p.m. OK MS C++ TESTS 84 62 180531200 2400
1507238 al_maz C April 9, 2012, 2:59 p.m. OK MS C++ TESTS 84 80 1740800 2400
1507244 al_maz C April 9, 2012, 3 p.m. OK MS C++ TESTS 84 80 1843200 2400
3414277 BIT_silence C March 28, 2013, 6:29 a.m. OK MS C++ TESTS 84 93 35020800 2400
1501071 NALP C April 8, 2012, 4 p.m. OK MS C++ TESTS 84 130 2457600 2400
1685055 fedorov C May 12, 2012, 8:10 p.m. OK MS C++ TESTS 84 280 1740800 2400
1685038 fedorov C May 12, 2012, 8:02 p.m. OK MS C++ TESTS 84 300 1740800 2400
1625552 indy256 C April 24, 2012, 9:49 p.m. OK MS C++ TESTS 84 310 201830400 2400
1528114 AleX C April 13, 2012, 11:36 a.m. OK MS C++ TESTS 84 360 1740800 2400
1507230 al_maz C April 9, 2012, 2:56 p.m. OK MS C++ TESTS 84 360 1843200 2400
1506455 alexey.shchepin C April 9, 2012, 9:41 a.m. OK Ocaml TESTS 84 1450 53043200 2400

remove filters

Back to search problems