Codeforces Beta Round 60

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
65 Codeforces Beta Round 60 FINISHED False 7200 432482399 March 5, 2011, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 94 ) E Harry Potter and Moving Staircases PROGRAMMING dfs and similar implementation 2900

B'Harry Potter lost his Invisibility Cloak, running from the school caretaker Filch. Finding an invisible object is not an easy task. Fortunately, Harry has friends who are willing to help. Hermione Granger had read "The Invisibility Cloaks, and Everything about Them", as well as six volumes of "The Encyclopedia of Quick Search of Shortest Paths in Graphs, Network Flows, the Maximal Increasing Subsequences and Other Magical Objects". She has already developed a search algorithm for the invisibility cloak in complex dynamic systems (Hogwarts is one of them). Hogwarts consists of n floors, numbered by integers from 1 to n. Some pairs of floors are connected by staircases. The staircases may change its position, moving exactly one end. Formally the situation is like this: if a staircase connects the floors a and b, then in one move it may modify its position so as to connect the floors a and c or b and c, where c is any floor different from a and b. Under no circumstances the staircase can connect a floor with itself. At the same time there can be multiple stairs between a pair of floors. Initially, Harry is on the floor with the number 1. He does not remember on what floor he has lost the cloak and wants to look for it on each of the floors. Therefore, his goal is to visit each of n floors at least once. Harry can visit the floors in any order and finish the searching at any floor. Nowadays the staircases move quite rarely. However, Ron and Hermione are willing to put a spell on any of them to help Harry find the cloak. To cause less suspicion, the three friends plan to move the staircases one by one, and no more than once for each staircase. In between shifting the staircases Harry will be able to move about the floors, reachable at the moment from the staircases, and look for his Invisibility Cloak. It is assumed that during all this time the staircases will not move spontaneously. Help the three friends to compose a searching plan. If there are several vari'...

Tutorials

Codeforces Beta Round #60: tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
22824842 Jin_Haonan E Dec. 9, 2016, 3:05 a.m. OK GNU C++ TESTS 57 78 13721600 2900
22824827 Jin_Haonan E Dec. 9, 2016, 3:04 a.m. OK GNU C++ TESTS 57 171 15872000 2900
22823838 Jin_Haonan E Dec. 9, 2016, 12:51 a.m. OK GNU C++ TESTS 57 187 15564800 2900
541120 Imcophoensa E July 10, 2011, 5:45 p.m. OK GNU C++ TESTS 57 300 24064000 2900
486624 balroginfire E June 13, 2011, 6:51 a.m. OK GNU C++ TESTS 57 300 24064000 2900
321680 RAVEman E March 5, 2011, 8:51 p.m. OK GNU C++ TESTS 57 420 18944000 2900
321437 Zhukov_Dmitry E March 5, 2011, 7:36 p.m. OK GNU C++ TESTS 57 500 48332800 2900
3476275 vjudge5 E April 5, 2013, 11:05 a.m. OK GNU C++ TESTS 57 625 16179200 2900
3476751 vjudge4 E April 5, 2013, 1:18 p.m. OK GNU C++ TESTS 57 703 16179200 2900
789194 guille E Oct. 21, 2011, 5:22 p.m. OK GNU C++ TESTS 57 730 14131200 2900
57906165 lopare E July 28, 2019, 5:42 p.m. OK GNU C++11 TESTS 57 124 21708800 2900
46251224 luogu_bot4 E Nov. 26, 2018, 2:14 p.m. OK GNU C++11 TESTS 57 124 21708800 2900
54496221 WOSHIGEPACHONG2 E May 22, 2019, 5:53 p.m. OK GNU C++11 TESTS 57 140 21708800 2900
17601730 Y_UME E May 1, 2016, 12:59 a.m. OK GNU C++11 TESTS 57 249 20787200 2900
12217307 HellKitsune E July 24, 2015, 5:22 p.m. OK GNU C++11 TESTS 57 310 18636800 2900
23506526 voover E Jan. 2, 2017, 9 p.m. OK GNU C++11 TESTS 57 327 43212800 2900
14535472 Los_Angelos_Laycurse E Nov. 28, 2015, 6:11 a.m. OK GNU C++11 TESTS 57 560 30208000 2900
14535477 Los_Angelos_Laycurse E Nov. 28, 2015, 6:11 a.m. OK GNU C++11 TESTS 57 590 30208000 2900
14535442 Los_Angelos_Laycurse E Nov. 28, 2015, 6:10 a.m. OK GNU C++11 TESTS 57 654 30208000 2900
17083691 freebsdx E April 1, 2016, 2:05 a.m. OK GNU C++11 TESTS 57 842 16486400 2900
56016395 sorry_im_smurfing E June 24, 2019, 9:35 p.m. OK GNU C++14 TESTS 57 140 21913600 2900
40993019 ReaLNero1 E July 31, 2018, 1:42 a.m. OK GNU C++14 TESTS 57 155 21913600 2900
21858306 2016 E Oct. 28, 2016, 8:06 p.m. OK GNU C++14 TESTS 57 155 21913600 2900
36256191 Cmise E March 13, 2018, 4:53 p.m. OK GNU C++14 TESTS 57 171 23040000 2900
58092626 artur.socha E July 31, 2019, 6:12 p.m. OK GNU C++14 TESTS 57 452 22528000 2900
58091607 artur.socha E July 31, 2019, 5:47 p.m. OK GNU C++14 TESTS 57 452 22528000 2900
27567631 Don_Pablo E June 4, 2017, 4:33 p.m. OK GNU C++14 TESTS 57 608 14540800 2900
38824192 ruo E June 1, 2018, 9:58 a.m. OK GNU C++17 TESTS 57 358 39321600 2900
322471 alexey.enkov E March 6, 2011, 12:42 p.m. OK Java 6 TESTS 57 1060 108851200 2900
322626 Shef E March 6, 2011, 3:07 p.m. OK MS C++ TESTS 57 410 25804800 2900
321863 Medium E March 5, 2011, 11:14 p.m. OK MS C++ TESTS 57 450 16486400 2900
395485 ecjtuprimemusic E April 18, 2011, 7:33 a.m. OK MS C++ TESTS 57 890 16076800 2900
395505 ecjtuprimemusic E April 18, 2011, 7:59 a.m. OK MS C++ TESTS 57 920 16076800 2900
321998 zibada E March 6, 2011, 2:23 a.m. OK Python 2 TESTS 57 2780 40140800 2900
11337832 Amr_Hassan E May 28, 2015, 7:19 p.m. OK Python 2 TESTS 57 3742 39424000 2900

remove filters

Back to search problems