Codeforces Round 585 (Div. 2)

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
1215 Codeforces Round 585 (Div. 2) FINISHED False 7200 168895487 Sept. 15, 2019, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1019 ) F Radio Stations PROGRAMMING 2-sat 2800

B"In addition to complaints about lighting, a lot of complaints about insufficient radio signal covering has been received by Bertown city hall recently. n complaints were sent to the mayor, all of which are suspiciosly similar to each other: in the i -th complaint, one of the radio fans has mentioned that the signals of two radio stations x_i and y_i are not covering some parts of the city, and demanded that the signal of at least one of these stations can be received in the whole city. Of cousre, the mayor of Bertown is currently working to satisfy these complaints. A new radio tower has been installed in Bertown, it can transmit a signal with any integer power from 1 to M (let's denote the signal power as f ). The mayor has decided that he will choose a set of radio stations and establish a contract with every chosen station. To establish a contract with the i -th station, the following conditions should be met: All this information was already enough for the mayor to realise that choosing the stations is hard. But after consulting with specialists, he learned that some stations the signals of some stations may interfere with each other: there are m pairs of stations ( u_i , v_i ) that use the same signal frequencies, and for each such pair it is impossible to establish contracts with both stations. If stations x and y use the same frequencies, and y and z use the same frequencies, it does not imply that x and z use the same frequencies. The mayor finds it really hard to analyze this situation, so he hired you to help him. You have to choose signal power f and a set of stations to establish contracts with such that: The first line contains 4 integers n , p , M and m ( 2 <= n, p, M, m <= 4 cdot 10^5 ) -- the number of complaints, the number of radio stations, maximum signal power and the number of interfering pairs, resp"...

Tutorials

Codeforces Round #585 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69064880 laquendi F Jan. 18, 2020, 6:09 p.m. OK GNU C11 TESTS 63 1435 179302400 2800
62593243 suuuuy F Oct. 14, 2019, 10:58 p.m. OK GNU C++11 TESTS 63 389 74956800 2800
60704500 GCCCCCCC F Sept. 17, 2019, 3:52 a.m. OK GNU C++11 TESTS 63 405 104038400 2800
60752864 miaokehao F Sept. 18, 2019, 7:20 a.m. OK GNU C++11 TESTS 63 421 78643200 2800
61826524 ReaLNero1 F Oct. 4, 2019, 5 a.m. OK GNU C++11 TESTS 63 436 78643200 2800
61451759 M_sea F Sept. 29, 2019, 3:30 a.m. OK GNU C++11 TESTS 63 483 75468800 2800
60714980 _Ikun_ F Sept. 17, 2019, 10:12 a.m. OK GNU C++11 TESTS 63 483 103833600 2800
60673814 Dilute F Sept. 16, 2019, 11:46 a.m. OK GNU C++11 TESTS 63 483 113664000 2800
60673876 Dilute F Sept. 16, 2019, 11:47 a.m. OK GNU C++11 TESTS 63 483 113766400 2800
60775732 xuxuxuxuxu F Sept. 18, 2019, 2:18 p.m. OK GNU C++11 TESTS 63 498 86937600 2800
64340888 Dream-chasing_Juvenile F Nov. 6, 2019, 2:36 a.m. OK GNU C++11 TESTS 63 498 111206400 2800
61008903 A_root_A F Sept. 21, 2019, 11:47 a.m. OK GNU C++14 TESTS 63 811 125030400 2800
62033285 Rabbittank F Oct. 7, 2019, 2:20 a.m. OK GNU C++14 TESTS 63 826 206745600 2800
60773510 Potassium_ F Sept. 18, 2019, 1:32 p.m. OK GNU C++14 TESTS 63 826 213196800 2800
62402294 vjudge4 F Oct. 12, 2019, 7:47 a.m. OK GNU C++14 TESTS 63 920 102604800 2800
60753241 1936448617 F Sept. 18, 2019, 7:31 a.m. OK GNU C++14 TESTS 63 1044 128921600 2800
60716039 ljc1301 F Sept. 17, 2019, 10:40 a.m. OK GNU C++14 TESTS 63 1060 78540800 2800
61050520 jgy002 F Sept. 22, 2019, 6:20 a.m. OK GNU C++14 TESTS 63 1153 213196800 2800
60717686 Verly F Sept. 17, 2019, 11:19 a.m. OK GNU C++14 TESTS 63 1263 122880000 2800
60671117 hiki_fun F Sept. 16, 2019, 10:43 a.m. OK GNU C++14 TESTS 63 1263 159129600 2800
60686487 PhantasmDragon F Sept. 16, 2019, 3:38 p.m. OK GNU C++14 TESTS 63 1263 202547200 2800
60673490 aboluo2003 F Sept. 16, 2019, 11:39 a.m. OK GNU C++17 TESTS 63 701 197324800 2800
60849185 31415926535x F Sept. 19, 2019, 1:30 p.m. OK GNU C++17 TESTS 63 810 131174400 2800
62063420 Super_M. F Oct. 7, 2019, 2:23 p.m. OK GNU C++17 TESTS 63 873 213196800 2800
60851124 31415926535x F Sept. 19, 2019, 2:05 p.m. OK GNU C++17 TESTS 63 951 194662400 2800
60733241 includehdhd F Sept. 17, 2019, 4:30 p.m. OK GNU C++17 TESTS 63 966 120012800 2800
68612066 emengdeath F Jan. 11, 2020, 4:05 p.m. OK GNU C++17 TESTS 63 1013 112128000 2800
60654410 neal F Sept. 15, 2019, 9:39 p.m. OK GNU C++17 TESTS 62 1029 87859200 2800
60683125 cppisgood F Sept. 16, 2019, 2:35 p.m. OK GNU C++17 TESTS 63 1044 209408000 2800
60659958 xz153531 F Sept. 16, 2019, 3:55 a.m. OK GNU C++17 TESTS 63 1076 83865600 2800
62392680 RealFreddy F Oct. 12, 2019, 3:28 a.m. OK GNU C++17 TESTS 63 1138 82227200 2800
66254531 dalt F Dec. 4, 2019, 5:04 a.m. OK Java 8 TESTS 63 1341 215449600 2800
65488610 dalt F Nov. 21, 2019, 1:45 p.m. OK Java 8 TESTS 63 1419 268390400 2800
65488508 dalt F Nov. 21, 2019, 1:43 p.m. OK Java 8 TESTS 63 1481 268390400 2800
60905269 SpargelTarzan F Sept. 20, 2019, 2:01 a.m. OK Java 8 TESTS 63 2776 268390400 2800
62102987 serg3000 F Oct. 8, 2019, 9:46 a.m. OK MS C++ 2017 TESTS 63 3806 142336000 2800
66749725 sansen F Dec. 13, 2019, 5:17 a.m. OK Rust TESTS 63 607 164147200 2800
66758588 sansen F Dec. 13, 2019, 6:31 a.m. OK Rust TESTS 63 608 159436800 2800
66746166 sansen F Dec. 13, 2019, 2:30 a.m. OK Rust TESTS 63 639 149504000 2800
66612935 sansen F Dec. 11, 2019, 12:03 a.m. OK Rust TESTS 63 639 155955200 2800
66751391 sansen F Dec. 13, 2019, 5:34 a.m. OK Rust TESTS 63 639 168960000 2800
66749607 sansen F Dec. 13, 2019, 5:13 a.m. OK Rust TESTS 63 655 204083200 2800
66611246 sansen F Dec. 10, 2019, 9:53 p.m. OK Rust TESTS 63 951 173158400 2800
66610996 sansen F Dec. 10, 2019, 9:39 p.m. OK Rust TESTS 63 1808 190464000 2800
66568848 sansen F Dec. 10, 2019, 2:15 a.m. OK Rust TESTS 63 1809 188006400 2800
66568665 sansen F Dec. 10, 2019, 1:59 a.m. OK Rust TESTS 63 2215 260403200 2800

remove filters

Back to search problems