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 |
|---|---|---|---|---|---|---|
| 158 | VK Cup 2012 Qualification Round 1 | FINISHED | False | 86400 | 445600823 | March 3, 2012, 8 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 10358 ) | C | Cd and pwd commands | PROGRAMMING | *special data structures implementation | 1900 |
Vasya is writing an operating system shell, and it should have commands for working with directories. To begin with, he decided to go with just two commands: cd (change the current directory) and pwd (display the current directory). Directories in Vasya's operating system form a traditional hierarchical tree structure. There is a single root directory, denoted by the slash character " / ". Every other directory has a name — a non-empty string consisting of lowercase Latin letters. Each directory (except for the root) has a parent directory — the one that contains the given directory. It is denoted as " .. ". The command cd takes a single parameter, which is a path in the file system. The command changes the current directory to the directory specified by the path. The path consists of the names of directories separated by slashes. The name of the directory can be " .. ", which means a step up to the parent directory. « .. » can be used in any place of the path, maybe several times. If the path begins with a slash, it is considered to be an absolute path, that is, the directory changes to the specified one, starting from the root. If the parameter begins with a directory name (or " .. "), it is considered to be a relative path, that is, the directory changes to the specified directory, starting from the current one. The command pwd should display the absolute path to the current directory. This path must not contain " .. ". Initially, the current directory is the root. All directories mentioned explicitly or passed indirectly within any command cd are considered to exist. It is guaranteed that there is no attempt of transition to the parent directory of the root directory. The first line of the input data contains the single integer n ( 1 ≤ n ≤ 50 ) — the number of commands. Then follow n lines, each contains one command. Each of these lines contains either command pwd , or command cd , followed by a space-separated non-empty parameter. The command paramete |
| Simple solution to vk cup Qualification Round 1 and 2 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 68360020 | Flamire | C | Jan. 7, 2020, 1:43 p.m. | OK | GNU C++11 | TESTS | 29 | 60 | 2457600 | 1900 | |
| 69801579 | madlogic | C | Jan. 29, 2020, 10:51 p.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 68296314 | ymc | C | Jan. 6, 2020, 3:03 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 66659291 | swineherd | C | Dec. 12, 2019, 3:10 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 66659286 | vjudge3 | C | Dec. 12, 2019, 3:09 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 65729531 | daidai21 | C | Nov. 26, 2019, 3:48 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 65729128 | daidai21 | C | Nov. 26, 2019, 3:23 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 65729054 | daidai21 | C | Nov. 26, 2019, 3:19 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 65337381 | Rush | C | Nov. 19, 2019, 9:27 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 64775500 | kaka1234 | C | Nov. 13, 2019, 3:55 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 0 | 1900 | |
| 68013639 | TheAnshul | C | Dec. 31, 2019, 5:11 p.m. | OK | GNU C++14 | TESTS | 29 | 30 | 204800 | 1900 | |
| 67624441 | _bacali | C | Dec. 25, 2019, 8:38 p.m. | OK | GNU C++14 | TESTS | 29 | 60 | 102400 | 1900 | |
| 63379605 | vjudge1 | C | Oct. 25, 2019, 12:04 p.m. | OK | GNU C++14 | TESTS | 29 | 60 | 102400 | 1900 | |
| 68007358 | vjudge2 | C | Dec. 31, 2019, 1:54 p.m. | OK | GNU C++14 | TESTS | 29 | 60 | 204800 | 1900 | |
| 67789498 | purple_ghost | C | Dec. 28, 2019, 2:05 p.m. | OK | GNU C++14 | TESTS | 29 | 60 | 204800 | 1900 | |
| 59873439 | Boolatile | C | Sept. 1, 2019, 8:53 p.m. | OK | GNU C++14 | TESTS | 29 | 60 | 204800 | 1900 | |
| 66899860 | sagnik98 | C | Dec. 15, 2019, 4:51 a.m. | OK | GNU C++14 | TESTS | 29 | 62 | 0 | 1900 | |
| 69073970 | Samanter | C | Jan. 19, 2020, 1:24 a.m. | OK | GNU C++14 | TESTS | 29 | 62 | 0 | 1900 | |
| 64299355 | x20 | C | Nov. 5, 2019, 9:32 a.m. | OK | GNU C++14 | TESTS | 29 | 62 | 0 | 1900 | |
| 58914467 | Acker_man | C | Aug. 16, 2019, 2:22 p.m. | OK | GNU C++14 | TESTS | 29 | 62 | 0 | 1900 | |
| 63285481 | kostia244 | C | Oct. 24, 2019, 10:11 a.m. | OK | GNU C++17 | TESTS | 29 | 60 | 102400 | 1900 | |
| 58405960 | mixalchik545 | C | Aug. 6, 2019, 8:37 p.m. | OK | GNU C++17 | TESTS | 29 | 60 | 102400 | 1900 | |
| 69297621 | GreatRoboCreator | C | Jan. 22, 2020, 12:47 p.m. | OK | GNU C++17 | TESTS | 29 | 60 | 204800 | 1900 | |
| 68337259 | eliot_alderson | C | Jan. 6, 2020, 11:22 p.m. | OK | GNU C++17 | TESTS | 29 | 60 | 204800 | 1900 | |
| 64274864 | Bench0310 | C | Nov. 4, 2019, 8:46 p.m. | OK | GNU C++17 | TESTS | 29 | 60 | 204800 | 1900 | |
| 61743814 | m.hasan01 | C | Oct. 2, 2019, 10:02 p.m. | OK | GNU C++17 | TESTS | 29 | 60 | 204800 | 1900 | |
| 59977788 | DarkLight256 | C | Sept. 4, 2019, 6:50 a.m. | OK | GNU C++17 | TESTS | 29 | 60 | 204800 | 1900 | |
| 64728747 | Mooncrater | C | Nov. 12, 2019, 7:32 a.m. | OK | GNU C++17 | TESTS | 29 | 60 | 2560000 | 1900 | |
| 68333173 | ehabamawi98 | C | Jan. 6, 2020, 7:55 p.m. | OK | GNU C++17 | TESTS | 29 | 62 | 0 | 1900 | |
| 67383241 | aryaman | C | Dec. 21, 2019, 4:59 p.m. | OK | GNU C++17 | TESTS | 29 | 62 | 0 | 1900 | |
| 61524049 | boad | C | Sept. 29, 2019, 8:45 p.m. | OK | Go | TESTS | 29 | 62 | 0 | 1900 | |
| 64195653 | Terariver | C | Nov. 4, 2019, 9:33 a.m. | OK | Java 11 | TESTS | 29 | 404 | 0 | 1900 | |
| 65939216 | akhilanandsamudrala | C | Nov. 29, 2019, 5:01 a.m. | OK | Java 8 | TESTS | 29 | 218 | 0 | 1900 | |
| 63658316 | egaeus | C | Oct. 28, 2019, 1:21 p.m. | OK | Java 8 | TESTS | 29 | 218 | 0 | 1900 | |
| 63874613 | supriya14 | C | Oct. 30, 2019, 6:34 p.m. | OK | Java 8 | TESTS | 29 | 248 | 0 | 1900 | |
| 63924457 | LordOrbit | C | Oct. 31, 2019, 12:39 p.m. | OK | Java 8 | TESTS | 29 | 248 | 0 | 1900 | |
| 64294474 | hidb | C | Nov. 5, 2019, 8:10 a.m. | OK | Java 8 | TESTS | 29 | 278 | 0 | 1900 | |
| 68143115 | _whatever | C | Jan. 4, 2020, 1:25 a.m. | OK | Java 8 | TESTS | 29 | 312 | 0 | 1900 | |
| 64201632 | Kingarthur-I | C | Nov. 4, 2019, 11:38 a.m. | OK | Java 8 | TESTS | 29 | 372 | 0 | 1900 | |
| 60377650 | goalboy | C | Sept. 11, 2019, 7:26 a.m. | OK | Java 8 | TESTS | 29 | 372 | 0 | 1900 | |
| 64135610 | mt_kuma | C | Nov. 3, 2019, 6:58 a.m. | OK | Kotlin | TESTS | 29 | 342 | 1228800 | 1900 | |
| 66989613 | chervovn04 | C | Dec. 15, 2019, 7:41 p.m. | OK | Mono C# | TESTS | 29 | 124 | 3686400 | 1900 | |
| 64192204 | BlizzardBunny | C | Nov. 4, 2019, 8:12 a.m. | OK | Mono C# | TESTS | 29 | 124 | 4096000 | 1900 | |
| 65520593 | parampamparam | C | Nov. 22, 2019, 8:08 a.m. | OK | MS C++ 2017 | TESTS | 29 | 62 | 307200 | 1900 | |
| 58713661 | Alexander_Kiryushkin | C | Aug. 13, 2019, 1:13 p.m. | OK | MS C++ 2017 | TESTS | 29 | 92 | 0 | 1900 | |
| 61096738 | alex_23 | C | Sept. 23, 2019, 3:46 a.m. | OK | MS C++ 2017 | TESTS | 29 | 92 | 0 | 1900 | |
| 68374788 | Rohit777singh | C | Jan. 7, 2020, 7:15 p.m. | OK | MS C++ 2017 | TESTS | 29 | 92 | 307200 | 1900 | |
| 67066597 | parasii_alex | C | Dec. 17, 2019, 11:20 a.m. | OK | PHP | TESTS | 29 | 92 | 409600 | 1900 | |
| 64395977 | wakii | C | Nov. 6, 2019, 3:57 p.m. | OK | PyPy 3 | TESTS | 29 | 248 | 0 | 1900 | |
| 58563481 | koptev | C | Aug. 11, 2019, 6:52 a.m. | OK | PyPy 3 | TESTS | 29 | 278 | 0 | 1900 | |
| 63695494 | windyknight | C | Oct. 29, 2019, 5:15 a.m. | OK | PyPy 3 | TESTS | 29 | 280 | 0 | 1900 | |
| 65349156 | amigunova | C | Nov. 19, 2019, 1:39 p.m. | OK | PyPy 3 | TESTS | 29 | 280 | 0 | 1900 | |
| 64373371 | Carlows | C | Nov. 6, 2019, 3:04 p.m. | OK | PyPy 3 | TESTS | 29 | 280 | 0 | 1900 | |
| 64129645 | pjcor | C | Nov. 3, 2019, 6:23 a.m. | OK | PyPy 3 | TESTS | 29 | 280 | 0 | 1900 | |
| 60240894 | AtharvaSune | C | Sept. 7, 2019, 9:15 p.m. | OK | PyPy 3 | TESTS | 29 | 280 | 0 | 1900 | |
| 58345219 | tiantian5 | C | Aug. 5, 2019, 2:41 p.m. | OK | PyPy 3 | TESTS | 29 | 280 | 0 | 1900 | |
| 69687661 | krpiyush5 | C | Jan. 28, 2020, 5:33 p.m. | OK | PyPy 3 | TESTS | 29 | 310 | 0 | 1900 | |
| 64143860 | rizwan486 | C | Nov. 3, 2019, 9:16 a.m. | OK | PyPy 3 | TESTS | 29 | 310 | 1331200 | 1900 | |
| 64437040 | patrick.james.ong | C | Nov. 7, 2019, 2:03 a.m. | OK | Python 3 | TESTS | 29 | 216 | 0 | 1900 | |
| 64483744 | darkus-_- | C | Nov. 7, 2019, 4:54 p.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64483285 | NikEvKuz | C | Nov. 7, 2019, 4:44 p.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64443579 | speedandpower | C | Nov. 7, 2019, 5:35 a.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64442459 | alvicii3 | C | Nov. 7, 2019, 5:04 a.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64439472 | abigail.moreno | C | Nov. 7, 2019, 3:25 a.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64438096 | kyla.villegas | C | Nov. 7, 2019, 2:38 a.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64314875 | chianuuuuxm | C | Nov. 5, 2019, 1:49 p.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64292229 | nadeshi_KO | C | Nov. 5, 2019, 7:27 a.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 64195493 | coltrane_torres | C | Nov. 4, 2019, 9:30 a.m. | OK | Python 3 | TESTS | 29 | 218 | 0 | 1900 | |
| 62710595 | uname5000 | C | Oct. 16, 2019, 3:36 p.m. | OK | Ruby | TESTS | 29 | 124 | 0 | 1900 | |
| 64798566 | tuna_salad | C | Nov. 13, 2019, 1:46 p.m. | OK | Rust | TESTS | 29 | 62 | 0 | 1900 |
Back to search problems