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 |
|---|---|---|---|---|---|---|
| 690 | Helvetic Coding Contest 2016 online mirror (teams, unrated) | FINISHED | False | 16200 | 308786385 | July 10, 2016, 8 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 111 ) | B3 | Recover Polygon (hard) | PROGRAMMING | 2800 |
Zombies have found out about the Zombie Contamination level checker and managed to damage it! Now detecting the shape of their main compound will be a real challenge for Heidi. As before, a lair can be represented as a strictly convex polygon on a lattice. Each vertex of the polygon occupies a point on the lattice. However, the damaged Zombie Contamination level checker can only tell, for each cell, whether the level of Zombie Contamination for that cell is in the set {1, 2, 3} . In other words, Heidi knows all the cells of the lattice for which the Contamination level is not 0 and not 4 . Given this information, Heidi still wants to know the exact shape of the lair to rain destruction on the zombies. Help her! The input contains multiple test cases. The first line of each test case contains two space-separated integers N and M , where N is the size of the lattice grid ( 5 ≤ N ≤ 100000 ) and M is the number of lattice points for which the Zombie Contamination level is 1, 2, or 3 ( 8 ≤ M ≤ 200000 ). The second line of each test case contains M pairs of integers x 1 , y 1 , ..., x M , y M – coordinates of the cells with Zombie Contamination level not equal to 0 nor 4. It is guaranteed that 1 ≤ x i , y i ≤ N . All pairs x i , y i are different. Cells are enumerated based on the coordinates of their upper right corner. This means that the bottommost leftmost cell that touches the origin has coordinates (1, 1) , and the uppermost leftmost cell is identified as (1, N ) . The last line of the file contains two zeroes. This line should not be treated as a test case. The sum of the M values for all tests in one file will not exceed 200000 . For each test case, the following output is expected: The first line of the output should contain one integer V , the number of vertices of the polygon that is the secret lair. The next V lines each should contain two integers, denoting the vertices of the polygon in the clockwise order, starting from the lexicographically small |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 40984176 | ReaLNero1 | B3 | July 30, 2018, 7:13 p.m. | OK | GNU C++ | TESTS | 11 | 46 | 4198400 | 2800 | |
| 25862130 | jiyutian | B3 | March 27, 2017, 11:52 p.m. | OK | GNU C++ | TESTS | 11 | 46 | 6348800 | 2800 | |
| 25847749 | jiyutian | B3 | March 27, 2017, 3:29 p.m. | OK | GNU C++ | TESTS | 11 | 46 | 6348800 | 2800 | |
| 19098209 | llgyc | B3 | July 14, 2016, 1:09 a.m. | OK | GNU C++ | TESTS | 11 | 77 | 16076800 | 2800 | |
| 19230007 | Vlad_kv | B3 | July 19, 2016, 10:56 a.m. | OK | GNU C++ | TESTS | 11 | 140 | 4812800 | 2800 | |
| 19005463 | black_horse2014 kutengine | B3 | July 10, 2016, 10:35 a.m. | OK | GNU C++ | TESTS | 11 | 171 | 28467200 | 2800 | |
| 19012221 | RNS_CUS | B3 | July 10, 2016, 3:22 p.m. | OK | GNU C++ | TESTS | 11 | 390 | 55603200 | 2800 | |
| 19098151 | Coward | B3 | July 14, 2016, 1:05 a.m. | OK | GNU C++ | TESTS | 11 | 577 | 48128000 | 2800 | |
| 19098197 | llgyc | B3 | July 14, 2016, 1:09 a.m. | OK | GNU C++ | TESTS | 11 | 1622 | 16076800 | 2800 | |
| 19008533 | krijgertje | B3 | July 10, 2016, 12:06 p.m. | OK | GNU C++11 | TESTS | 11 | 62 | 7270400 | 2800 | |
| 57880180 | lopare | B3 | July 28, 2019, 7:24 a.m. | OK | GNU C++11 | TESTS | 11 | 108 | 32460800 | 2800 | |
| 20392198 | 20140355 | B3 | Sept. 5, 2016, 2:43 a.m. | OK | GNU C++11 | TESTS | 11 | 124 | 32460800 | 2800 | |
| 19008693 | Vercingetorix Nerevar | B3 | July 10, 2016, 12:10 p.m. | OK | GNU C++11 | TESTS | 11 | 280 | 31334400 | 2800 | |
| 19007497 | Endagorion | B3 | July 10, 2016, 11:37 a.m. | OK | GNU C++11 | TESTS | 11 | 295 | 7987200 | 2800 | |
| 19180839 | HellKitsune | B3 | July 16, 2016, 11:10 p.m. | OK | GNU C++11 | TESTS | 11 | 295 | 37888000 | 2800 | |
| 19007909 | pwypeanut jacobtpl zhangguangxuan99 | B3 | July 10, 2016, 11:48 a.m. | OK | GNU C++11 | TESTS | 11 | 327 | 17203200 | 2800 | |
| 19008407 | Coder | B3 | July 10, 2016, 12:03 p.m. | OK | GNU C++11 | TESTS | 11 | 327 | 18534400 | 2800 | |
| 19403651 | devilplus | B3 | July 25, 2016, 12:44 p.m. | OK | GNU C++11 | TESTS | 11 | 327 | 24064000 | 2800 | |
| 19058894 | LelouchRiBritannia | B3 | July 12, 2016, 10:16 p.m. | OK | GNU C++11 | TESTS | 11 | 327 | 24064000 | 2800 | |
| 26187126 | atatomir | B3 | April 7, 2017, 8:20 a.m. | OK | GNU C++14 | TESTS | 11 | 156 | 21811200 | 2800 | |
| 29542901 | tossy | B3 | Aug. 18, 2017, 4:16 a.m. | OK | GNU C++14 | TESTS | 11 | 311 | 30924800 | 2800 | |
| 23380304 | Ali.Pi | B3 | Dec. 28, 2016, 2:48 p.m. | OK | GNU C++14 | TESTS | 11 | 327 | 19353600 | 2800 | |
| 36642503 | Geo_01 | B3 | March 26, 2018, 12:38 p.m. | OK | GNU C++14 | TESTS | 11 | 358 | 20992000 | 2800 | |
| 28057779 | DebNatkh | B3 | June 26, 2017, 12:51 p.m. | OK | GNU C++14 | TESTS | 11 | 608 | 18636800 | 2800 | |
| 28057767 | DebNatkh | B3 | June 26, 2017, 12:50 p.m. | OK | GNU C++14 | TESTS | 11 | 655 | 19251200 | 2800 | |
| 57816837 | Benq | B3 | July 26, 2019, 8:11 p.m. | OK | GNU C++17 | TESTS | 11 | 265 | 9523200 | 2800 | |
| 19009145 | eatmore | B3 | July 10, 2016, 12:21 p.m. | OK | Java 8 | TESTS | 11 | 249 | 13312000 | 2800 | |
| 19009355 | mmaxio | B3 | July 10, 2016, 12:25 p.m. | OK | Java 8 | TESTS | 11 | 1762 | 222617600 | 2800 | |
| 19007754 | mmaxio | B3 | July 10, 2016, 11:44 a.m. | OK | Java 8 | TESTS | 11 | 2714 | 252825600 | 2800 | |
| 19009311 | mmaxio | B3 | July 10, 2016, 12:24 p.m. | OK | Java 8 | TESTS | 11 | 3260 | 233984000 | 2800 | |
| 19003526 | tloinuy chenmark haitao | B3 | July 10, 2016, 9:41 a.m. | OK | MS C# | TESTS | 11 | 358 | 43110400 | 2800 | |
| 19009775 | stgatilov | B3 | July 10, 2016, 12:38 p.m. | OK | MS C++ | TESTS | 11 | 452 | 32870400 | 2800 |
Back to search problems