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 |
|---|---|---|---|---|---|---|
| 566 | VK Cup 2015 - Finals, online mirror | FINISHED | False | 10800 | 338132423 | July 30, 2015, 4:20 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 369 ) | B | Replicating Processes | PROGRAMMING | constructive algorithms greedy | 2600 |
A Large Software Company develops its own social network. Analysts have found that during the holidays, major sporting events and other significant events users begin to enter the network more frequently, resulting in great load increase on the infrastructure. As part of this task, we assume that the social network is 4 n processes running on the n servers. All servers are absolutely identical machines, each of which has a volume of RAM of 1 GB = 1024 MB (1) . Each process takes 100 MB of RAM on the server. At the same time, the needs of maintaining the viability of the server takes about 100 more megabytes of RAM. Thus, each server may have up to 9 different processes of social network. Now each of the n servers is running exactly 4 processes. However, at the moment of peak load it is sometimes necessary to replicate the existing 4 n processes by creating 8 n new processes instead of the old ones. More formally, there is a set of replication rules, the i -th ( 1 ≤ i ≤ 4 n ) of which has the form of a i → ( b i , c i ) , where a i , b i and c i ( 1 ≤ a i , b i , c i ≤ n ) are the numbers of servers. This means that instead of an old process running on server a i , there should appear two new copies of the process running on servers b i and c i . The two new replicated processes can be on the same server (i.e., b i may be equal to c i ) or even on the same server where the original process was (i.e. a i may be equal to b i or c i ). During the implementation of the rule a i → ( b i , c i ) first the process from the server a i is destroyed, then appears a process on the server b i , then appears a process on the server c i . There is a set of 4 n rules, destroying all the original 4 n processes from n servers, and creating after their application 8 n replicated processes, besides, on each of the n servers will be exactly 8 processes. However, the rules can only be applied consecutively, and therefore the amount of RAM of the servers imposes limitations on t |
| Editorial for VK Cup 2015 — Finals |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 28897270 | jiyutian | B | July 26, 2017, 7:34 a.m. | OK | GNU C++ | TESTS | 35 | 31 | 4812800 | 2600 | |
| 12488562 | RadwanAbuOdeh | B | Aug. 13, 2015, 7:53 a.m. | OK | GNU C++ | TESTS | 35 | 78 | 2764800 | 2600 | |
| 12314669 | KuribohG | B | Aug. 2, 2015, 12:22 p.m. | OK | GNU C++ | TESTS | 35 | 78 | 3072000 | 2600 | |
| 12561550 | zpltys | B | Aug. 16, 2015, 1:38 p.m. | OK | GNU C++ | TESTS | 35 | 78 | 3174400 | 2600 | |
| 28054359 | kut_ksr1994 | B | June 26, 2017, 9:39 a.m. | OK | GNU C++ | TESTS | 35 | 78 | 5120000 | 2600 | |
| 12318324 | osama | B | Aug. 2, 2015, 8 p.m. | OK | GNU C++ | TESTS | 35 | 93 | 2048000 | 2600 | |
| 12439990 | SanSiroWaltz | B | Aug. 10, 2015, 2:36 p.m. | OK | GNU C++ | TESTS | 35 | 93 | 2355200 | 2600 | |
| 14011384 | KevinTan | B | Nov. 1, 2015, 4:29 p.m. | OK | GNU C++ | TESTS | 35 | 93 | 2764800 | 2600 | |
| 13887046 | 130705009 | B | Oct. 27, 2015, 8:21 a.m. | OK | GNU C++ | TESTS | 35 | 93 | 2969600 | 2600 | |
| 12308400 | stevenkplus | B | Aug. 1, 2015, 11:11 p.m. | OK | GNU C++ | TESTS | 35 | 93 | 2969600 | 2600 | |
| 34264653 | Maniac_Wallnut | B | Jan. 18, 2018, 2:25 a.m. | OK | GNU C++11 | TESTS | 35 | 46 | 6553600 | 2600 | |
| 34264645 | vjudge3 | B | Jan. 18, 2018, 2:25 a.m. | OK | GNU C++11 | TESTS | 35 | 46 | 6553600 | 2600 | |
| 40986338 | ReaLNero1 | B | July 30, 2018, 8:30 p.m. | OK | GNU C++11 | TESTS | 35 | 61 | 4505600 | 2600 | |
| 12283601 | pavel.savchenkov | B | July 30, 2015, 9:37 p.m. | OK | GNU C++11 | TESTS | 35 | 78 | 3072000 | 2600 | |
| 28661666 | chitanda | B | July 18, 2017, 8:15 a.m. | OK | GNU C++11 | TESTS | 35 | 78 | 6144000 | 2600 | |
| 15915451 | not_bot_but_POT | B | Feb. 9, 2016, 2:06 p.m. | OK | GNU C++11 | TESTS | 35 | 78 | 19865600 | 2600 | |
| 23480216 | Ali.Pi | B | Jan. 1, 2017, 8:26 a.m. | OK | GNU C++11 | TESTS | 35 | 78 | 21913600 | 2600 | |
| 57885087 | lopare | B | July 28, 2019, 9:28 a.m. | OK | GNU C++11 | TESTS | 35 | 78 | 69017600 | 2600 | |
| 57817435 | py_ultron | B | July 26, 2019, 8:32 p.m. | OK | GNU C++11 | TESTS | 35 | 78 | 69017600 | 2600 | |
| 12829424 | new_doubleh | B | Sept. 3, 2015, 2:03 p.m. | OK | GNU C++11 | TESTS | 35 | 93 | 2252800 | 2600 | |
| 34264070 | spfa | B | Jan. 18, 2018, 1:42 a.m. | OK | GNU C++14 | TESTS | 35 | 93 | 70656000 | 2600 | |
| 35888331 | ______n______ | B | March 3, 2018, 2:19 p.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 35888009 | _____k_____ | B | March 3, 2018, 2:14 p.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 35886964 | _____i_____ | B | March 3, 2018, 1:56 p.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 35883193 | ______h______ | B | March 3, 2018, 12:50 p.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 35882820 | ______k______ | B | March 3, 2018, 12:44 p.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 35875187 | ______i______ | B | March 3, 2018, 8:09 a.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 35873599 | ______M______ | B | March 3, 2018, 7:34 a.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 34264279 | spfa | B | Jan. 18, 2018, 1:55 a.m. | OK | GNU C++14 | TESTS | 35 | 93 | 71065600 | 2600 | |
| 34711781 | -w- | B | Jan. 30, 2018, 2:16 p.m. | OK | GNU C++14 | TESTS | 35 | 124 | 9113600 | 2600 | |
| 62910635 | hjk1030 | B | Oct. 19, 2019, 7:12 a.m. | OK | GNU C++17 | TESTS | 35 | 93 | 2150400 | 2600 | |
| 62205965 | TianSunXing | B | Oct. 9, 2019, 1:14 p.m. | OK | GNU C++17 | TESTS | 35 | 108 | 2560000 | 2600 | |
| 65534689 | ruo | B | Nov. 22, 2019, 1:44 p.m. | OK | GNU C++17 | TESTS | 35 | 109 | 3993600 | 2600 | |
| 63630984 | CMXRYNP | B | Oct. 28, 2019, 6:22 a.m. | OK | GNU C++17 | TESTS | 35 | 155 | 16691200 | 2600 | |
| 68654965 | Slaaava | B | Jan. 12, 2020, 11:56 a.m. | OK | GNU C++17 | TESTS | 35 | 218 | 17100800 | 2600 | |
| 12951725 | edorundo | B | Sept. 11, 2015, 3:17 a.m. | OK | Java 7 | TESTS | 35 | 343 | 11673600 | 2600 | |
| 12293720 | IgorKoval | B | July 31, 2015, 3:44 p.m. | OK | Java 8 | TESTS | 35 | 187 | 0 | 2600 | |
| 12280725 | Petr ilyakor | B | July 30, 2015, 6:21 p.m. | OK | Java 8 | TESTS | 35 | 280 | 0 | 2600 | |
| 12279887 | Egor | B | July 30, 2015, 5:49 p.m. | OK | Java 8 | TESTS | 35 | 326 | 0 | 2600 | |
| 12289695 | og.kostya | B | July 31, 2015, 9:37 a.m. | OK | MS C# | TESTS | 35 | 93 | 8499200 | 2600 | |
| 12283924 | NVAL | B | July 30, 2015, 10:34 p.m. | OK | MS C++ | TESTS | 35 | 93 | 2048000 | 2600 | |
| 12281301 | xiaowenzi | B | July 30, 2015, 6:46 p.m. | OK | MS C++ | TESTS | 35 | 93 | 21913600 | 2600 | |
| 15926085 | wa1tz719 | B | Feb. 10, 2016, 8:12 a.m. | OK | MS C++ | TESTS | 35 | 1341 | 9625600 | 2600 | |
| 69152767 | kopok2 | B | Jan. 19, 2020, 6:11 p.m. | OK | Python 3 | TESTS | 35 | 810 | 22118400 | 2600 |
Back to search problems