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 |
|---|---|---|---|---|---|---|
| 928 | VK Cup 2018 - Квалификация 1 | FINISHED | False | 86400 | 256919123 | Feb. 24, 2018, 3:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 905 ) | C | Dependency management | PROGRAMMING | *special graphs implementation | 2300 |
Polycarp is currently developing a project in Vaja language and using a popular dependency management system called Vamen. From Vamen's point of view both Vaja project and libraries are treated projects for simplicity. A project in Vaja has its own uniqie non-empty name consisting of lowercase latin letters with length not exceeding 10 and version — positive integer from 1 to 10 6 . Each project (keep in mind that it is determined by both its name and version) might depend on other projects. For sure, there are no cyclic dependencies. You're given a list of project descriptions. The first of the given projects is the one being developed by Polycarp at this moment. Help Polycarp determine all projects that his project depends on (directly or via a certain chain). It's possible that Polycarp's project depends on two different versions of some project. In this case collision resolving is applied, i.e. for each such project the system chooses the version that minimizes the distance from it to Polycarp's project. If there are several options, the newer (with the maximum version) is preferred. This version is considered actual; other versions and their dependencies are ignored. More formal, choose such a set of projects of minimum possible size that the following conditions hold: Polycarp's project is chosen; Polycarp's project depends (directly or indirectly) on all other projects in the set; no two projects share the name; for each project x that some other project in the set depends on we have either x or some y with other version and shorter chain to Polycarp's project chosen. In case of ties the newer one is chosen. Output all Polycarp's project's dependencies (Polycarp's project itself should't be printed) in lexicographical order. The first line contains an only integer n ( 1 ≤ n ≤ 1 000 ) — the number of projects in Vaja. The following lines contain the project descriptions. Each project is described by a line consisting of its name and version separated |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 35675365 | neonchick dmitriy.sudakov2001 | C | Feb. 25, 2018, 10:24 a.m. | OK | Delphi | TESTS | 49 | 514 | 26624000 | 2300 | |
| 35685299 | Citizen404 Porky | C | Feb. 25, 2018, 3:26 p.m. | OK | FPC | TESTS | 49 | 685 | 35942400 | 2300 | |
| 35658320 | PazaMaza slavik228 | C | Feb. 24, 2018, 7:16 p.m. | OK | FPC | TESTS | 49 | 858 | 208691200 | 2300 | |
| 35664092 | Salim_Shebli | C | Feb. 24, 2018, 11:32 p.m. | OK | GNU C++ | TESTS | 49 | 842 | 8192000 | 2300 | |
| 35681657 | neither q707185547 | C | Feb. 25, 2018, 1:44 p.m. | OK | GNU C++ | TESTS | 49 | 2027 | 21504000 | 2300 | |
| 35684717 | hamlet Khazhak | C | Feb. 25, 2018, 3:12 p.m. | OK | GNU C++ | TESTS | 49 | 2105 | 34918400 | 2300 | |
| 35714469 | Snipx | C | Feb. 25, 2018, 10:28 p.m. | OK | GNU C++ | TESTS | 49 | 2106 | 21504000 | 2300 | |
| 36077270 | NeyrHulk | C | March 8, 2018, 4:41 p.m. | OK | GNU C++ | TESTS | 49 | 2136 | 21504000 | 2300 | |
| 35657224 | Awelless Dima5879 | C | Feb. 24, 2018, 6:35 p.m. | OK | GNU C++ | TESTS | 49 | 2604 | 6963200 | 2300 | |
| 57342119 | jxf378440404 | C | July 19, 2019, 7:25 p.m. | OK | GNU C++11 | TESTS | 49 | 202 | 17612800 | 2300 | |
| 35673965 | Waldis Vanek | C | Feb. 25, 2018, 9:23 a.m. | OK | GNU C++11 | TESTS | 49 | 249 | 21504000 | 2300 | |
| 35683899 | Andrew_Makar BigBag | C | Feb. 25, 2018, 2:49 p.m. | OK | GNU C++11 | TESTS | 49 | 296 | 20275200 | 2300 | |
| 35660323 | Arthur markysha | C | Feb. 24, 2018, 8:21 p.m. | OK | GNU C++11 | TESTS | 49 | 312 | 17203200 | 2300 | |
| 35661541 | zemen malcolm | C | Feb. 24, 2018, 9:11 p.m. | OK | GNU C++11 | TESTS | 49 | 327 | 24576000 | 2300 | |
| 35655265 | Tinsane kb. | C | Feb. 24, 2018, 5:31 p.m. | OK | GNU C++11 | TESTS | 49 | 343 | 6246400 | 2300 | |
| 35677554 | Yamatan | C | Feb. 25, 2018, 11:46 a.m. | OK | GNU C++11 | TESTS | 49 | 358 | 18227200 | 2300 | |
| 35682762 | timgaripov tanja200596 | C | Feb. 25, 2018, 2:15 p.m. | OK | GNU C++11 | TESTS | 49 | 389 | 5120000 | 2300 | |
| 35670162 | Roms adedalic | C | Feb. 25, 2018, 6:41 a.m. | OK | GNU C++11 | TESTS | 49 | 420 | 5120000 | 2300 | |
| 35685462 | comunodi Loud_Scream | C | Feb. 25, 2018, 3:30 p.m. | OK | GNU C++11 | TESTS | 49 | 420 | 21401600 | 2300 | |
| 35655293 | hey_boris platypus179 | C | Feb. 24, 2018, 5:32 p.m. | OK | GNU C++14 | TESTS | 49 | 171 | 16179200 | 2300 | |
| 35675955 | voidmax Egor.Lifar | C | Feb. 25, 2018, 10:49 a.m. | OK | GNU C++14 | TESTS | 49 | 171 | 21606400 | 2300 | |
| 41580092 | 0xID | C | Aug. 14, 2018, 7:37 a.m. | OK | GNU C++14 | TESTS | 49 | 186 | 14336000 | 2300 | |
| 35655985 | alexey_kuldoshin arzhantsev64 | C | Feb. 24, 2018, 5:53 p.m. | OK | GNU C++14 | TESTS | 49 | 186 | 19148800 | 2300 | |
| 40978277 | ReaLNero1 | C | July 30, 2018, 4:34 p.m. | OK | GNU C++14 | TESTS | 49 | 187 | 14336000 | 2300 | |
| 35683952 | Valerich | C | Feb. 25, 2018, 2:51 p.m. | OK | GNU C++14 | TESTS | 49 | 202 | 21504000 | 2300 | |
| 35661902 | FallenTurret | C | Feb. 24, 2018, 9:27 p.m. | OK | GNU C++14 | TESTS | 49 | 202 | 21504000 | 2300 | |
| 35678160 | Rudy358 I_Love_Tina | C | Feb. 25, 2018, 12:04 p.m. | OK | GNU C++14 | TESTS | 49 | 202 | 21606400 | 2300 | |
| 35664591 | ilyshnikova olegts | C | Feb. 25, 2018, 12:11 a.m. | OK | GNU C++14 | TESTS | 49 | 202 | 21606400 | 2300 | |
| 35662339 | kraborak demon1999 | C | Feb. 24, 2018, 9:49 p.m. | OK | GNU C++14 | TESTS | 49 | 202 | 21606400 | 2300 | |
| 35655687 | Au-Rikka Seemann | C | Feb. 24, 2018, 5:42 p.m. | OK | GNU C++17 | TESTS | 49 | 186 | 16179200 | 2300 | |
| 35681027 | videogamez dima.13 | C | Feb. 25, 2018, 1:26 p.m. | OK | GNU C++17 | TESTS | 49 | 187 | 16179200 | 2300 | |
| 35655803 | mehrunesartem pokachopotun | C | Feb. 24, 2018, 5:46 p.m. | OK | GNU C++17 | TESTS | 49 | 202 | 21606400 | 2300 | |
| 35705004 | belkka | C | Feb. 25, 2018, 5:44 p.m. | OK | GNU C++17 | TESTS | 49 | 202 | 30208000 | 2300 | |
| 35685035 | belkka dendi239 | C | Feb. 25, 2018, 3:20 p.m. | OK | GNU C++17 | TESTS | 49 | 202 | 30208000 | 2300 | |
| 35661031 | orz doreshnikov | C | Feb. 24, 2018, 8:50 p.m. | OK | GNU C++17 | TESTS | 49 | 217 | 21504000 | 2300 | |
| 35656454 | Evilkeeper TonySnark | C | Feb. 24, 2018, 6:09 p.m. | OK | GNU C++17 | TESTS | 49 | 218 | 21299200 | 2300 | |
| 35653610 | aytel Constantius | C | Feb. 24, 2018, 4:47 p.m. | OK | GNU C++17 | TESTS | 49 | 218 | 21606400 | 2300 | |
| 35663319 | milova_nat dxxMAMMOTHxxb | C | Feb. 24, 2018, 10:45 p.m. | OK | GNU C++17 | TESTS | 49 | 233 | 35532800 | 2300 | |
| 35710289 | Bruce_Willis | C | Feb. 25, 2018, 7:33 p.m. | OK | GNU C++17 | TESTS | 49 | 234 | 21504000 | 2300 | |
| 36208460 | just806me | C | March 11, 2018, 6:52 p.m. | OK | Go | TESTS | 49 | 264 | 50892800 | 2300 | |
| 35660434 | Petruchcho pitfall | C | Feb. 24, 2018, 8:26 p.m. | OK | Java 8 | TESTS | 49 | 233 | 21094400 | 2300 | |
| 35658532 | NikitaMikhaylov Musin | C | Feb. 24, 2018, 7:23 p.m. | OK | Java 8 | TESTS | 49 | 358 | 21299200 | 2300 | |
| 35674478 | E.Vakhitov pereb4ik | C | Feb. 25, 2018, 9:46 a.m. | OK | Java 8 | TESTS | 49 | 374 | 21708800 | 2300 | |
| 36468448 | dalt | C | March 22, 2018, 3:57 a.m. | OK | Java 8 | TESTS | 49 | 389 | 61132800 | 2300 | |
| 35660430 | khazhix 4mda4mda | C | Feb. 24, 2018, 8:26 p.m. | OK | Java 8 | TESTS | 49 | 390 | 27136000 | 2300 | |
| 35664488 | Regider Recognized | C | Feb. 25, 2018, 12:03 a.m. | OK | Java 8 | TESTS | 49 | 420 | 21401600 | 2300 | |
| 35653842 | Albert1401 antkhorin | C | Feb. 24, 2018, 4:53 p.m. | OK | Java 8 | TESTS | 49 | 436 | 89600000 | 2300 | |
| 35682695 | VernitaGreen svxf | C | Feb. 25, 2018, 2:13 p.m. | OK | Java 8 | TESTS | 49 | 452 | 21196800 | 2300 | |
| 35680186 | RoyaLKoninA Grand | C | Feb. 25, 2018, 1:01 p.m. | OK | Java 8 | TESTS | 49 | 452 | 26726400 | 2300 | |
| 35659596 | Facmad hangedplane | C | Feb. 24, 2018, 7:57 p.m. | OK | Java 8 | TESTS | 49 | 482 | 26726400 | 2300 | |
| 35663500 | max333 | C | Feb. 24, 2018, 10:58 p.m. | OK | JavaScript | TESTS | 49 | 280 | 18227200 | 2300 | |
| 35658350 | foreheadSniffer fapspirit | C | Feb. 24, 2018, 7:17 p.m. | OK | JavaScript | TESTS | 49 | 2854 | 46899200 | 2300 | |
| 66529445 | Spheniscine | C | Dec. 9, 2019, 6:58 a.m. | OK | Kotlin | TESTS | 49 | 452 | 34713600 | 2300 | |
| 66526199 | jonathanSC | C | Dec. 9, 2019, 4:59 a.m. | OK | Kotlin | TESTS | 49 | 452 | 34713600 | 2300 | |
| 66525011 | Spheniscine | C | Dec. 9, 2019, 3:52 a.m. | OK | Kotlin | TESTS | 49 | 514 | 70144000 | 2300 | |
| 66544809 | Spheniscine | C | Dec. 9, 2019, 12:50 p.m. | OK | Kotlin | TESTS | 49 | 529 | 62873600 | 2300 | |
| 66543958 | Spheniscine | C | Dec. 9, 2019, 12:34 p.m. | OK | Kotlin | TESTS | 49 | 529 | 70144000 | 2300 | |
| 66525132 | Spheniscine | C | Dec. 9, 2019, 4:01 a.m. | OK | Kotlin | TESTS | 49 | 530 | 70144000 | 2300 | |
| 66568642 | Spheniscine | C | Dec. 10, 2019, 1:58 a.m. | OK | Kotlin | TESTS | 49 | 545 | 62873600 | 2300 | |
| 66543861 | Spheniscine | C | Dec. 9, 2019, 12:31 p.m. | OK | Kotlin | TESTS | 49 | 545 | 70144000 | 2300 | |
| 35661123 | Skeptick | C | Feb. 24, 2018, 8:53 p.m. | OK | Kotlin | TESTS | 49 | 717 | 80076800 | 2300 | |
| 35663815 | artemohanjanyan Jackson | C | Feb. 24, 2018, 11:17 p.m. | OK | Kotlin | TESTS | 49 | 779 | 81612800 | 2300 | |
| 38624613 | og.kostya | C | May 26, 2018, 6:05 a.m. | OK | Mono C# | TESTS | 49 | 436 | 38297600 | 2300 | |
| 35671757 | Sin_Of_The_Sun RSakutin | C | Feb. 25, 2018, 7:55 a.m. | OK | Mono C# | TESTS | 49 | 1902 | 18841600 | 2300 | |
| 35682875 | guzev29 lesley29 | C | Feb. 25, 2018, 2:18 p.m. | OK | MS C# | TESTS | 49 | 343 | 46182400 | 2300 | |
| 35684720 | Aragonro YarNick | C | Feb. 25, 2018, 3:12 p.m. | OK | MS C# | TESTS | 49 | 374 | 17817600 | 2300 | |
| 35670736 | kav128 | C | Feb. 25, 2018, 7:09 a.m. | OK | MS C# | TESTS | 49 | 468 | 19968000 | 2300 | |
| 35681546 | RemovalOfBrain | C | Feb. 25, 2018, 1:41 p.m. | OK | MS C# | TESTS | 49 | 1856 | 41779200 | 2300 | |
| 35682015 | egardoz01 sen4eg | C | Feb. 25, 2018, 1:53 p.m. | OK | MS C++ | TESTS | 49 | 421 | 22425600 | 2300 | |
| 35794540 | Feechka_ | C | Feb. 28, 2018, 7:10 p.m. | OK | MS C++ | TESTS | 49 | 655 | 22425600 | 2300 | |
| 35657169 | Murek179 gerind | C | Feb. 24, 2018, 6:33 p.m. | OK | MS C++ | TESTS | 49 | 655 | 22528000 | 2300 | |
| 35677056 | AleksandraZh ZloyNegr | C | Feb. 25, 2018, 11:31 a.m. | OK | MS C++ | TESTS | 49 | 702 | 22732800 | 2300 | |
| 35673363 | DeBudd | C | Feb. 25, 2018, 8:59 a.m. | OK | MS C++ | TESTS | 49 | 732 | 25088000 | 2300 | |
| 35699689 | miha715lev | C | Feb. 25, 2018, 5:05 p.m. | OK | MS C++ | TESTS | 49 | 733 | 22425600 | 2300 | |
| 35674077 | Mesrop Andreasyan | C | Feb. 25, 2018, 9:28 a.m. | OK | MS C++ | TESTS | 49 | 733 | 27136000 | 2300 | |
| 35663335 | AndrewB330 chdn | C | Feb. 24, 2018, 10:46 p.m. | OK | MS C++ | TESTS | 49 | 795 | 32563200 | 2300 | |
| 35667193 | Halifay DmitryVol | C | Feb. 25, 2018, 3:38 a.m. | OK | MS C++ | TESTS | 49 | 795 | 34611200 | 2300 | |
| 35681387 | katan innok96 | C | Feb. 25, 2018, 1:36 p.m. | OK | MS C++ | TESTS | 49 | 858 | 22528000 | 2300 | |
| 56710782 | TOXait | C | July 8, 2019, 12:40 p.m. | OK | MS C++ 2017 | TESTS | 49 | 452 | 3072000 | 2300 | |
| 42277389 | ilya_ust | C | Aug. 30, 2018, 12:22 p.m. | OK | PyPy 3 | TESTS | 49 | 3353 | 53657600 | 2300 | |
| 35685131 | S_o_T sansiositres | C | Feb. 25, 2018, 3:23 p.m. | OK | PyPy 3 | TESTS | 49 | 3681 | 60313600 | 2300 | |
| 35709705 | Bruce_Willis | C | Feb. 25, 2018, 7:24 p.m. | OK | Python 3 | TESTS | 49 | 655 | 57036800 | 2300 | |
| 35697216 | belkka | C | Feb. 25, 2018, 4:52 p.m. | OK | Python 3 | TESTS | 49 | 1153 | 57548800 | 2300 | |
| 35703370 | belkka | C | Feb. 25, 2018, 5:30 p.m. | OK | Python 3 | TESTS | 49 | 1184 | 57344000 | 2300 | |
| 35683362 | Boyarnikov t.zakharova26 | C | Feb. 25, 2018, 2:34 p.m. | OK | Python 3 | TESTS | 49 | 1185 | 32563200 | 2300 | |
| 35653664 | zidder altunyanv | C | Feb. 24, 2018, 4:48 p.m. | OK | Python 3 | TESTS | 49 | 1201 | 89804800 | 2300 | |
| 35709818 | Bruce_Willis | C | Feb. 25, 2018, 7:25 p.m. | OK | Python 3 | TESTS | 49 | 1216 | 57036800 | 2300 | |
| 35709533 | Bruce_Willis | C | Feb. 25, 2018, 6:55 p.m. | OK | Python 3 | TESTS | 49 | 1216 | 57036800 | 2300 | |
| 42259616 | ilya_ust | C | Aug. 30, 2018, 1:46 a.m. | OK | Python 3 | TESTS | 49 | 1247 | 51712000 | 2300 | |
| 35711359 | MBogda | C | Feb. 25, 2018, 7:58 p.m. | OK | Python 3 | TESTS | 49 | 1247 | 56934400 | 2300 | |
| 35710178 | Bruce_Willis | C | Feb. 25, 2018, 7:31 p.m. | OK | Python 3 | TESTS | 49 | 1247 | 57036800 | 2300 | |
| 35659864 | mikhailme mishabhai | C | Feb. 24, 2018, 8:05 p.m. | OK | Scala | TESTS | 49 | 2698 | 90828800 | 2300 |
Back to search problems