Технокубок 2018 - Отборочный Раунд 1

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
858 Технокубок 2018 - Отборочный Раунд 1 FINISHED False 8400 270752123 Sept. 17, 2017, 1:05 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 533 ) E Tests Renumeration PROGRAMMING greedy implementation 2300

The All-Berland National Olympiad in Informatics has just ended! Now Vladimir wants to upload the contest from the Olympiad as a gym to a popular Codehorses website. Unfortunately, the archive with Olympiad's data is a mess. For example, the files with tests are named arbitrary without any logic. Vladimir wants to rename the files with tests so that their names are distinct integers starting from 1 without any gaps, namely, " 1 ", " 2 ", ..., " n ', where n is the total number of tests. Some of the files contain tests from statements (examples), while others contain regular tests. It is possible that there are no examples, and it is possible that all tests are examples. Vladimir wants to rename the files so that the examples are the first several tests, all all the next files contain regular tests only. The only operation Vladimir can perform is the " move " command. Vladimir wants to write a script file, each of the lines in which is " move file_1 file_2 ", that means that the file " file_1 " is to be renamed to " file_2 ". If there is a file " file_2 " at the moment of this line being run, then this file is to be rewritten. After the line " move file_1 file_2 " the file " file_1 " doesn't exist, but there is a file " file_2 " with content equal to the content of " file_1 " before the " move " command. Help Vladimir to write the script file with the minimum possible number of lines so that after this script is run: all examples are the first several tests having filenames " 1 ", " 2 ", ..., " e ", where e is the total number of examples; all other files contain regular tests with filenames " e + 1 ", " e + 2 ", ..., " n ", where n is the total number of all tests. The first line contains single integer n ( 1 ≤ n ≤ 10 5 ) — the number of files with tests. n lines follow, each describing a file with test. Each line has a form of " name_i type_i ", where " name_i " is the filename, and " type_i " equals " 1 ", if the i -th file contains an example test, and

Tutorials

Codeforces Round 434 Div.1+Div.2 (and Technocup 2018 — Elimination Round 1) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
31144149 progg_admin E Oct. 8, 2017, 12:38 p.m. OK GNU C++ TESTS 165 78 2355200 2300
30522743 JeffreyLC E Sept. 19, 2017, 5:19 p.m. OK GNU C++ TESTS 165 78 2355200 2300
30728874 maratonando2 E Sept. 25, 2017, 2:32 p.m. OK GNU C++ TESTS 165 93 21401600 2300
30728854 GabrielPessoa E Sept. 25, 2017, 2:31 p.m. OK GNU C++ TESTS 165 93 21401600 2300
30500042 asaveljevs E Sept. 19, 2017, 1:51 p.m. OK GNU C++ TESTS 165 202 14233600 2300
30948823 EZ_fwtt08 E Oct. 2, 2017, 4:56 p.m. OK GNU C++11 TESTS 165 78 2457600 2300
40979777 ReaLNero1 E July 30, 2018, 5:14 p.m. OK GNU C++11 TESTS 165 78 3788800 2300
30448787 rowdark E Sept. 17, 2017, 7:59 p.m. OK GNU C++11 TESTS 165 124 10137600 2300
34091781 tmwilliamlin168 E Jan. 11, 2018, 4:14 p.m. OK GNU C++11 TESTS 165 202 6758400 2300
52958111 Daniel19Frenzy E April 18, 2019, 2:35 p.m. OK GNU C++11 TESTS 165 202 8601600 2300
30460222 Kamfucius E Sept. 18, 2017, 9:59 a.m. OK GNU C++11 TESTS 165 202 17612800 2300
31987758 Sloppy_Nerd E Nov. 2, 2017, 5:27 p.m. OK GNU C++11 TESTS 165 217 14643200 2300
30842040 marat.snowbear E Sept. 29, 2017, 10:04 p.m. OK GNU C++11 TESTS 165 280 19251200 2300
36318861 McGinn E March 16, 2018, 7:19 a.m. OK GNU C++11 TESTS 165 374 9318400 2300
31371489 Leemur E Oct. 15, 2017, 3:54 p.m. OK GNU C++11 TESTS 165 436 20787200 2300
30443661 sincerity E Sept. 17, 2017, 3:08 p.m. OK GNU C++14 TESTS 165 78 15052800 2300
30524870 Linkus E Sept. 19, 2017, 5:58 p.m. OK GNU C++14 TESTS 165 93 14438400 2300
30443792 gepardo E Sept. 17, 2017, 3:09 p.m. OK GNU C++14 TESTS 165 93 15872000 2300
30442247 peltorator E Sept. 17, 2017, 2:55 p.m. OK GNU C++14 TESTS 165 108 19046400 2300
31329301 Gmacem E Oct. 15, 2017, 5:35 a.m. OK GNU C++14 TESTS 165 109 9318400 2300
30450598 MrLolthe1st E Sept. 17, 2017, 9:21 p.m. OK GNU C++14 TESTS 165 109 15155200 2300
30571444 Stroustrup E Sept. 21, 2017, 8:48 a.m. OK GNU C++14 TESTS 165 109 19046400 2300
30451292 Egor.Lifar E Sept. 17, 2017, 10:23 p.m. OK GNU C++14 TESTS 165 109 20275200 2300
30442437 snek_Case E Sept. 17, 2017, 2:57 p.m. OK GNU C++14 TESTS 165 140 5017600 2300
66267643 Mbfibat E Dec. 4, 2019, 11:07 a.m. OK GNU C++14 TESTS 165 140 22425600 2300
42354586 Ilya-bar E Sept. 2, 2018, 7:52 a.m. OK GNU C++17 TESTS 165 140 9523200 2300
66597170 Mlxa E Dec. 10, 2019, 3:07 p.m. OK GNU C++17 TESTS 165 451 25292800 2300
30816225 yugle7 E Sept. 28, 2017, 9:19 p.m. OK Python 3 TESTS 165 545 17305600 2300
31183150 dluschan E Oct. 10, 2017, 7:20 a.m. OK Python 3 TESTS 165 1029 14336000 2300
31107505 usachevd0 E Oct. 7, 2017, 9:05 a.m. OK Python 3 TESTS 165 1200 23142400 2300

remove filters

Back to search problems