Codeforces Round 545 (Div. 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
1137 Codeforces Round 545 (Div. 1) FINISHED False 9000 179787299 March 8, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1213 ) C Museums Tour PROGRAMMING dp graphs implementation 2800

B'In the country N , there are n cities connected by m one-way roads. Although this country seems unremarkable, there are two interesting facts about it. At first, a week lasts d days here. At second, there is exactly one museum in each city of the country N . Travel agency "Open museums" is developing a new program for tourists interested in museums. Agency 's employees know which days each of the museums is open. The tour should start in the capital -- the city number 1 , and the first day of the tour must be on the first day of a week. Each day a tourist will be in some city, watching the exposition in its museum (in case museum is open today), and by the end of the day, the tour either ends or the tourist goes into another city connected by a road with the current one. The road system of N is designed in such a way that traveling by a road always takes one night and also all the roads are one-way. It 's allowed to visit a city multiple times during the trip. You should develop such route for the trip that the number of distinct museums, possible to visit during it, is maximum. The first line contains three integers n , m and d ( 1 <= q n <= q 100 ,000 , 0 <= q m <= q 100 ,000 , 1 <= q d <= q 50 ), the number of cities, the number of roads and the number of days in a week. Each of next m lines contains two integers u_i and v_i ( 1 <= u_i, v_i <= n , u_i ne v_i ), denoting a one-way road from the city u_i to the city v_i . The next n lines contain the museums ' schedule. The schedule of the museum located in the i -th city is described in the i -th of these lines. Each line consists of exactly d characters "0" or "1", the j -th character of the string equals to "1" if the museum is open at the j -th day of a week, and "0", otherwise. It 's guaranteed that for each pair of cities (u, v) there exists no more than '...

Tutorials

Codeforces Round #545 – Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51136057 ghostfly233 C March 10, 2019, 4:10 p.m. OK GNU C++11 TESTS 95 202 55808000 2800
51114855 little_waxberry C March 10, 2019, 6:27 a.m. OK GNU C++11 TESTS 95 217 44851200 2800
51056776 CalvinJin C March 8, 2019, 11:23 p.m. OK GNU C++11 TESTS 95 218 64102400 2800
52558765 luogu_bot2 C April 10, 2019, 9:12 a.m. OK GNU C++11 TESTS 95 233 39628800 2800
51059717 frodakcin C March 9, 2019, 2:08 a.m. OK GNU C++11 TESTS 95 233 62668800 2800
51022685 Ra16bit C March 8, 2019, 11:10 a.m. OK GNU C++11 TESTS 95 233 88064000 2800
65530505 2829908231 C Nov. 22, 2019, 12:15 p.m. OK GNU C++11 TESTS 95 233 99635200 2800
65535317 vjudge4 C Nov. 22, 2019, 1:56 p.m. OK GNU C++11 TESTS 95 248 99635200 2800
53766791 koilearntocode C May 5, 2019, 12:59 a.m. OK GNU C++11 TESTS 95 249 42700800 2800
52029684 just_soso C March 30, 2019, 4:57 p.m. OK GNU C++11 TESTS 95 249 43417600 2800
51044254 nhho C March 8, 2019, 6:07 p.m. OK GNU C++14 TESTS 95 234 60825600 2800
51255418 Hamzqq9 C March 13, 2019, 11:03 a.m. OK GNU C++14 TESTS 95 265 41164800 2800
51021801 Gromah C March 8, 2019, 11:02 a.m. OK GNU C++14 TESTS 95 280 122368000 2800
51057190 yhx-12243 C March 8, 2019, 11:53 p.m. OK GNU C++14 TESTS 95 280 187392000 2800
51025274 NoLongerRed C March 8, 2019, 11:28 a.m. OK GNU C++14 TESTS 95 295 52326400 2800
52284325 waynetuinfor C April 3, 2019, 6:49 p.m. OK GNU C++14 TESTS 95 296 43827200 2800
52284310 waynetuinfor C April 3, 2019, 6:49 p.m. OK GNU C++14 TESTS 95 296 43827200 2800
52495933 luogu_bot5 C April 8, 2019, 1:41 p.m. OK GNU C++14 TESTS 95 296 59904000 2800
51017901 Shayan C March 8, 2019, 10:32 a.m. OK GNU C++14 TESTS 95 296 69427200 2800
51051067 codelegend C March 8, 2019, 9:09 p.m. OK GNU C++14 TESTS 95 326 72704000 2800
57373305 Nakagawa.Kanon C July 20, 2019, 11:37 a.m. OK GNU C++17 TESTS 95 109 71065600 2800
57373292 Nishihara C July 20, 2019, 11:36 a.m. OK GNU C++17 TESTS 95 109 71065600 2800
51064368 CMXRYNP C March 9, 2019, 5:10 a.m. OK GNU C++17 TESTS 95 140 71065600 2800
51416119 RemiliaScarlet C March 17, 2019, 2:06 p.m. OK GNU C++17 TESTS 95 233 34406400 2800
51121925 bigbigcat111 C March 10, 2019, 9:41 a.m. OK GNU C++17 TESTS 95 280 41164800 2800
54025570 bmerry C May 12, 2019, 12:22 p.m. OK GNU C++17 TESTS 95 295 49049600 2800
51014956 E869120 C March 8, 2019, 10:08 a.m. OK GNU C++17 TESTS 95 296 44134400 2800
51020002 cxt C March 8, 2019, 10:49 a.m. OK GNU C++17 TESTS 95 296 62668800 2800
51318121 JiangYutong C March 15, 2019, 3:01 a.m. OK GNU C++17 TESTS 95 296 63385600 2800
51149133 beobeo C March 11, 2019, 6:25 a.m. OK GNU C++17 TESTS 95 311 42291200 2800
51017019 mmaxio C March 8, 2019, 10:25 a.m. OK Java 8 TESTS 95 561 63283200 2800
51010447 Petr C March 8, 2019, 9:33 a.m. OK Java 8 TESTS 95 904 88473600 2800
67417265 dalt C Dec. 22, 2019, 10:22 a.m. OK Java 8 TESTS 95 919 221388800 2800
51105740 fetetriste C March 9, 2019, 10:13 p.m. OK Java 8 TESTS 95 1684 226918400 2800
51018223 Harpae C March 8, 2019, 10:35 a.m. OK Java 8 TESTS 95 2011 158515200 2800
52236126 dtsarun C April 2, 2019, 1:50 p.m. OK Java 8 TESTS 95 2807 176332800 2800
51025680 wRabbits_AlMag C March 8, 2019, 11:31 a.m. OK MS C++ TESTS 95 2823 292147200 2800
51246298 ymz C March 13, 2019, 5:31 a.m. OK MS C++ TESTS 95 3478 525926400 2800
51020401 LoneFox C March 8, 2019, 10:51 a.m. OK MS C++ TESTS 95 3962 527257600 2800
51513394 notexist C March 19, 2019, 3:34 p.m. OK MS C++ 2017 TESTS 95 904 318976000 2800
51085661 Dontdoprepaitisatrap C March 9, 2019, 12:54 p.m. OK MS C++ 2017 TESTS 95 966 198348800 2800
51449895 smtcoder C March 18, 2019, 2:13 p.m. OK MS C++ 2017 TESTS 95 1076 270745600 2800
51251551 hitman623 C March 13, 2019, 8:59 a.m. OK MS C++ 2017 TESTS 95 1232 256819200 2800
51251443 hitman623 C March 13, 2019, 8:56 a.m. OK MS C++ 2017 TESTS 95 1403 256819200 2800
51045994 Egor.Lifar C March 8, 2019, 6:43 p.m. OK MS C++ 2017 TESTS 95 1590 327065600 2800
51041963 train_driver C March 8, 2019, 5:18 p.m. OK MS C++ 2017 TESTS 95 1606 390041600 2800
51042054 train_driver C March 8, 2019, 5:19 p.m. OK MS C++ 2017 TESTS 95 1622 414412800 2800
51056991 paulica C March 8, 2019, 11:38 p.m. OK MS C++ 2017 TESTS 95 1699 374476800 2800
51285366 alexX512 C March 14, 2019, 6:55 a.m. OK MS C++ 2017 TESTS 95 1840 355635200 2800
68114465 gearjack C Jan. 3, 2020, 10:54 a.m. OK Rust TESTS 95 592 117350400 2800
66895102 sansen C Dec. 15, 2019, 12:44 a.m. OK Rust TESTS 95 3618 398745600 2800
66895148 sansen C Dec. 15, 2019, 12:48 a.m. OK Rust TESTS 95 3805 398643200 2800
66894970 sansen C Dec. 15, 2019, 12:33 a.m. OK Rust TESTS 95 3821 398745600 2800

remove filters

Back to search problems