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 |
---|---|---|---|---|---|---|
1070 | 2018-2019 ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 191800499 | Oct. 20, 2018, 8:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 69 ) | M | Algoland and Berland | PROGRAMMING | constructive algorithms divide and conquer geometry | 3100 |
B"Once upon a time Algoland and Berland were a single country, but those times are long gone. Now they are two different countries, but their cities are scattered on a common territory. All cities are represented as points on the Cartesian plane. Algoland consists of a cities numbered from 1 to a . The coordinates of the i -th Algoland city are a pair of integer numbers (xa_i, ya_i) . Similarly, Berland consists of b cities numbered from 1 to b . The coordinates of the j -th Berland city are a pair of integer numbers (xb_j, yb_j) . No three of the a+b mentioned cities lie on a single straight line. As the first step to unite the countries, Berland decided to build several bidirectional freeways. Each freeway is going to be a line segment that starts in a Berland city and ends in an Algoland city. Freeways can't intersect with each other at any point except freeway's start or end. Moreover, the freeways have to connect all a+b cities. Here, connectivity means that one can get from any of the specified a+b cities to any other of the a+b cities using freeways. Note that all freeways are bidirectional, which means that one can drive on each of them in both directions. Mayor of each of the b Berland cities allocated a budget to build the freeways that start from this city. Thus, you are given the numbers r_1, r_2, ... , r_b , where r_j is the number of freeways that are going to start in the j -th Berland city. The total allocated budget is very tight and only covers building the minimal necessary set of freeways. In other words, r_1+r_2+ ... +r_b=a+b-1 . Help Berland to build the freeways so that: Input contains one or several test cases. The first input line contains a single integer number t ( 1 <= t <= 3000 ) -- number of test cases. Then, t test cases follow. Solve test cases separately, test cases are completely independent and do not"... |
Solution to problem M. Algoland and Berland of 2018-2019 ICPC, NEERC |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
57868033 | lopare | M | July 27, 2019, 10:52 p.m. | OK | GNU C++11 | TESTS | 93 | 61 | 8192000 | 3100 | |
46035131 | krijgertje | M | Nov. 21, 2018, 3:54 p.m. | OK | GNU C++11 | TESTS | 93 | 109 | 6348800 | 3100 | |
44756613 | samjia2000 | M | Oct. 24, 2018, 2:33 a.m. | OK | GNU C++11 | TESTS | 93 | 405 | 614400 | 3100 | |
44768076 | yyf0309 | M | Oct. 24, 2018, 11:03 a.m. | OK | GNU C++11 | TESTS | 93 | 624 | 108646400 | 3100 | |
44767954 | yyf0309 | M | Oct. 24, 2018, 11 a.m. | OK | GNU C++11 | TESTS | 93 | 639 | 108748800 | 3100 | |
45414211 | function348 | M | Nov. 7, 2018, 1:23 p.m. | OK | GNU C++11 | TESTS | 93 | 701 | 215961600 | 3100 | |
44737148 | 251 | M | Oct. 23, 2018, 1:15 p.m. | OK | GNU C++11 | TESTS | 93 | 1029 | 395776000 | 3100 | |
44735654 | 251 | M | Oct. 23, 2018, 12:42 p.m. | OK | GNU C++11 | TESTS | 93 | 1045 | 395776000 | 3100 | |
45121892 | Feeey | M | Oct. 31, 2018, 5:18 a.m. | OK | GNU C++11 | TESTS | 93 | 1060 | 395673600 | 3100 | |
44599510 | tuwuna | M | Oct. 20, 2018, 1:42 p.m. | OK | GNU C++11 | TESTS | 93 | 1091 | 420147200 | 3100 | |
44761806 | aid | M | Oct. 24, 2018, 7:36 a.m. | OK | GNU C++14 | TESTS | 93 | 46 | 20172800 | 3100 | |
45767619 | Drin_E | M | Nov. 15, 2018, 12:57 p.m. | OK | GNU C++14 | TESTS | 93 | 62 | 8089600 | 3100 | |
48657239 | ReaLNero1 | M | Jan. 21, 2019, 3:37 a.m. | OK | GNU C++14 | TESTS | 93 | 62 | 8294400 | 3100 | |
44939575 | kjp4155 ainta molamola. | M | Oct. 27, 2018, 7:08 a.m. | OK | GNU C++14 | TESTS | 93 | 156 | 55091200 | 3100 | |
44709845 | ecnerwala | M | Oct. 22, 2018, 6:21 p.m. | OK | GNU C++14 | TESTS | 93 | 451 | 1331200 | 3100 | |
59606227 | cz_xuyixuan | M | Aug. 28, 2019, 8:57 a.m. | OK | GNU C++14 | TESTS | 93 | 483 | 2048000 | 3100 | |
59606326 | cz_xuyixuan | M | Aug. 28, 2019, 8:59 a.m. | OK | GNU C++14 | TESTS | 93 | 483 | 2252800 | 3100 | |
44708988 | ecnerwala | M | Oct. 22, 2018, 6:01 p.m. | OK | GNU C++14 | TESTS | 93 | 483 | 4915200 | 3100 | |
44751200 | ReaLNero1 | M | Oct. 23, 2018, 8:02 p.m. | OK | GNU C++14 | TESTS | 93 | 483 | 128307200 | 3100 | |
44666941 | I_love_chickpea Chameleon2460 Radewoosh | M | Oct. 21, 2018, 6:28 p.m. | OK | GNU C++14 | TESTS | 93 | 483 | 128307200 | 3100 | |
45244499 | _Happy_New_Year_ | M | Nov. 3, 2018, 1:16 p.m. | OK | GNU C++17 | TESTS | 93 | 499 | 4300800 | 3100 | |
45061039 | LHiC | M | Oct. 29, 2018, 2:50 p.m. | OK | GNU C++17 | TESTS | 93 | 1013 | 431820800 | 3100 | |
45060973 | LHiC | M | Oct. 29, 2018, 2:48 p.m. | OK | GNU C++17 | TESTS | 93 | 1044 | 431820800 | 3100 | |
45191903 | ggoh | M | Nov. 2, 2018, 3:16 a.m. | OK | GNU C++17 | TESTS | 93 | 2136 | 260812800 | 3100 |
Back to search problems