Codeforces Round 590 (Div. 3)

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
1234 Codeforces Round 590 (Div. 3) FINISHED False 8100 161882699 Oct. 1, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16971 ) B2 Social Network (hard version) PROGRAMMING data structures implementation 1200

B'The only difference between easy and hard versions are constraints on n and k . You are messaging in one of the popular social networks via your smartphone. Your smartphone can show at most k most recent conversations with your friends. Initially, the screen is empty (i.e. the number of displayed conversations equals 0 ). Each conversation is between you and some of your friends. There is at most one conversation with any of your friends. So each conversation is uniquely defined by your friend. You (suddenly!) have the ability to see the future. You know that during the day you will receive n messages, the i -th message will be received from the friend with ID id_i ( 1 <= id_i <= 10^9 ). If you receive a message from id_i in the conversation which is currently displayed on the smartphone then nothing happens: the conversations of the screen do not change and do not change their order, you read the message and continue waiting for new messages. Otherwise (i.e. if there is no conversation with id_i on the screen): Your task is to find the list of conversations (in the order they are displayed on the screen) after processing all n messages. The first line of the input contains two integers n and k ( 1 <= n, k <= 2 cdot 10^5) -- the number of messages and the number of conversations your smartphone can show. The second line of the input contains n integers id_1, id_2, ... , id_n ( 1 <= id_i <= 10^9 ), where id_i is the ID of the friend which sends you the i -th message. In the first line of the output print one integer m ( 1 <= m <= min(n, k) ) -- the number of conversations shown after receiving all n messages. In the second line print m integers ids_1, ids_2, ... , ids_m , where ids_i should be equal to the ID of the friend corresponding to the conversation displayed on the position i after receiving all'...

Tutorials

Codeforces Round #590 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62179151 NewAccelWorld B2 Oct. 9, 2019, 5:45 a.m. OK Clang++17 Diagnostics TESTS 144 1980 134348800 1200
61894879 gabrielliu2001 B2 Oct. 5, 2019, 6:57 a.m. OK Clang++17 Diagnostics TESTS 144 1980 134348800 1200
61976253 PosaLusa24 B2 Oct. 6, 2019, 10:36 a.m. OK GNU C++11 TESTS 144 78 127078400 1200
61970651 PosaLusa24 B2 Oct. 6, 2019, 9 a.m. OK GNU C++11 TESTS 144 78 127078400 1200
61975707 PosaLusa24 B2 Oct. 6, 2019, 10:27 a.m. OK GNU C++11 TESTS 144 93 127078400 1200
62917021 zxynothing B2 Oct. 19, 2019, 8:56 a.m. OK GNU C++11 TESTS 144 124 4096000 1200
61826269 ReaLNero1 B2 Oct. 4, 2019, 4:54 a.m. OK GNU C++11 TESTS 144 124 7987200 1200
61716880 oduesp B2 Oct. 2, 2019, 12:48 p.m. OK GNU C++11 TESTS 144 124 7987200 1200
61746046 matheusdiogenesandrade B2 Oct. 3, 2019, 12:26 a.m. OK GNU C++11 TESTS 144 124 132300800 1200
61721360 paget B2 Oct. 2, 2019, 1:52 p.m. OK GNU C++11 TESTS 144 139 3993600 1200
61838029 cqyzzzx B2 Oct. 4, 2019, 8:40 a.m. OK GNU C++11 TESTS 144 140 2662400 1200
62561004 IIIV B2 Oct. 14, 2019, 11:57 a.m. OK GNU C++11 TESTS 144 140 3276800 1200
64120933 mr11261 B2 Nov. 3, 2019, 1:14 a.m. OK GNU C++14 TESTS 144 140 5939200 1200
68027081 vjudge2 B2 Jan. 1, 2020, 6:39 a.m. OK GNU C++14 TESTS 144 140 10649600 1200
62602468 LODB---D B2 Oct. 15, 2019, 6:16 a.m. OK GNU C++14 TESTS 144 140 24985600 1200
62315956 KaziMuktadir B2 Oct. 10, 2019, 3:17 p.m. OK GNU C++14 TESTS 144 140 126259200 1200
62315117 KaziMuktadir B2 Oct. 10, 2019, 3:02 p.m. OK GNU C++14 TESTS 144 140 126259200 1200
62457059 zrGB B2 Oct. 13, 2019, 6:51 a.m. OK GNU C++14 TESTS 144 155 3481600 1200
62627047 cs71107 B2 Oct. 15, 2019, 2:21 p.m. OK GNU C++14 TESTS 144 155 3584000 1200
67008589 18ti_padung B2 Dec. 16, 2019, 8:59 a.m. OK GNU C++14 TESTS 144 155 5017600 1200
61733674 Panos_Ptr B2 Oct. 2, 2019, 5:30 p.m. OK GNU C++14 TESTS 144 155 5120000 1200
61713576 ANZ1217 B2 Oct. 2, 2019, 12:01 p.m. OK GNU C++14 TESTS 144 155 8499200 1200
62878146 NWDD B2 Oct. 18, 2019, 3:58 p.m. OK GNU C++17 TESTS 144 77 8396800 1200
62877543 NWDD B2 Oct. 18, 2019, 3:46 p.m. OK GNU C++17 TESTS 144 78 5017600 1200
62877761 NWDD B2 Oct. 18, 2019, 3:50 p.m. OK GNU C++17 TESTS 144 78 9113600 1200
62877121 NWDD B2 Oct. 18, 2019, 3:38 p.m. OK GNU C++17 TESTS 144 93 2867200 1200
61759418 2680v4 B2 Oct. 3, 2019, 6:38 a.m. OK GNU C++17 TESTS 144 140 10240000 1200
65669073 rmN.MidoriyaR2003 B2 Nov. 24, 2019, 3:09 p.m. OK GNU C++17 TESTS 144 140 10444800 1200
61716730 karan2dec B2 Oct. 2, 2019, 12:46 p.m. OK GNU C++17 TESTS 144 140 10444800 1200
62757464 charan_xyz B2 Oct. 17, 2019, 5:26 a.m. OK GNU C++17 TESTS 144 140 10752000 1200
62249879 jimlin7777 B2 Oct. 10, 2019, 8:56 a.m. OK GNU C++17 TESTS 144 140 10854400 1200
61715945 raymond_lor B2 Oct. 2, 2019, 12:34 p.m. OK GNU C++17 TESTS 144 155 5120000 1200
61755875 oleg.shtykov B2 Oct. 3, 2019, 5:29 a.m. OK Go TESTS 144 155 14028800 1200
66806594 vchilikov B2 Dec. 13, 2019, 9:41 p.m. OK Go TESTS 144 233 9932800 1200
66806493 vchilikov B2 Dec. 13, 2019, 9:35 p.m. OK Go TESTS 144 249 4608000 1200
62327625 sighduck B2 Oct. 10, 2019, 7:10 p.m. OK Go TESTS 144 249 9830400 1200
66806432 vchilikov B2 Dec. 13, 2019, 9:32 p.m. OK Go TESTS 144 265 5324800 1200
61872704 maguroguma B2 Oct. 4, 2019, 6:51 p.m. OK Go TESTS 144 311 43315200 1200
61740713 stefan.sakalik B2 Oct. 2, 2019, 8:07 p.m. OK Go TESTS 144 312 12800000 1200
61717358 kat0rik B2 Oct. 2, 2019, 12:55 p.m. OK Go TESTS 144 811 5427200 1200
61805743 Platinumda B2 Oct. 3, 2019, 9:23 p.m. OK Haskell TESTS 144 1045 57958400 1200
64737725 xwhalex B2 Nov. 12, 2019, 10:56 a.m. OK Java 11 TESTS 144 514 26009600 1200
66564341 satya_p54 B2 Dec. 9, 2019, 8:45 p.m. OK Java 11 TESTS 144 1122 20992000 1200
68703158 warrioramrit B2 Jan. 13, 2020, 10:11 a.m. OK Java 11 TESTS 144 1169 34406400 1200
65162188 bluesky111 B2 Nov. 16, 2019, 11:50 a.m. OK Java 8 TESTS 144 296 16998400 1200
62940129 MaxHeap B2 Oct. 19, 2019, 3:17 p.m. OK Java 8 TESTS 144 326 11878400 1200
62083009 MohamedK B2 Oct. 7, 2019, 10:21 p.m. OK Java 8 TESTS 144 326 14131200 1200
62257958 kusomushi B2 Oct. 10, 2019, 11:20 a.m. OK Java 8 TESTS 144 326 16793600 1200
61929378 atarw B2 Oct. 5, 2019, 3:45 p.m. OK Java 8 TESTS 144 327 10752000 1200
61763161 elkadymohammed01 B2 Oct. 3, 2019, 7:46 a.m. OK Java 8 TESTS 144 327 12595200 1200
62550833 In_The_Name_Of_Love B2 Oct. 14, 2019, 8:33 a.m. OK Java 8 TESTS 144 327 13107200 1200
63379899 YazanAssaf B2 Oct. 25, 2019, 12:10 p.m. OK Java 8 TESTS 144 327 15360000 1200
62095829 Ruins B2 Oct. 8, 2019, 7:31 a.m. OK Java 8 TESTS 144 327 16691200 1200
61720045 housni B2 Oct. 2, 2019, 1:33 p.m. OK Java 8 TESTS 144 327 28057600 1200
61724232 walborn B2 Oct. 2, 2019, 2:49 p.m. OK JavaScript TESTS 144 280 45875200 1200
62672704 madmonl B2 Oct. 16, 2019, 10:23 a.m. OK JavaScript TESTS 144 1560 55091200 1200
67512458 Killer45 B2 Dec. 24, 2019, 9:40 a.m. OK Kotlin TESTS 144 421 44339200 1200
67379663 RauBot B2 Dec. 21, 2019, 4:01 p.m. OK Kotlin TESTS 144 1169 17612800 1200
63086480 ScanNorOne B2 Oct. 21, 2019, 4:45 p.m. OK Kotlin TESTS 144 1278 18534400 1200
62443358 heat_wave B2 Oct. 12, 2019, 8:45 p.m. OK Kotlin TESTS 144 1450 30003200 1200
63486715 SeD B2 Oct. 26, 2019, 1:19 p.m. OK Kotlin TESTS 144 1512 29593600 1200
63348521 mirennn B2 Oct. 24, 2019, 8:25 p.m. OK Kotlin TESTS 144 1996 20275200 1200
64106491 og.kostya B2 Nov. 2, 2019, 4:51 p.m. OK Mono C# TESTS 144 155 20070400 1200
61950591 azukun B2 Oct. 6, 2019, 3:09 a.m. OK Mono C# TESTS 144 202 36147200 1200
62330311 Evgenii_Stepanov B2 Oct. 10, 2019, 8:21 p.m. OK Mono C# TESTS 144 234 32051200 1200
63100941 m1_k3 B2 Oct. 22, 2019, 12:27 a.m. OK Mono C# TESTS 144 249 33996800 1200
62047904 NEvOl B2 Oct. 7, 2019, 8:32 a.m. OK Mono C# TESTS 144 249 36147200 1200
63117887 DM7PvTyc B2 Oct. 22, 2019, 10:05 a.m. OK Mono C# TESTS 144 295 37683200 1200
62590390 ahmedabdalmageed B2 Oct. 14, 2019, 8:46 p.m. OK Mono C# TESTS 144 811 36454400 1200
62082846 hloya B2 Oct. 7, 2019, 10:10 p.m. OK Mono C# TESTS 144 842 34304000 1200
61720378 Tan42 B2 Oct. 2, 2019, 1:38 p.m. OK Mono C# TESTS 144 842 41062400 1200
61902732 MAKARonin TheFinalEpisode svobodiannikov B2 Oct. 5, 2019, 8:59 a.m. OK Mono C# TESTS 144 842 46387200 1200
65296604 vjudge5 B2 Nov. 18, 2019, 11:45 a.m. OK MS C++ TESTS 144 171 4198400 1200
68110078 vjudge4 B2 Jan. 3, 2020, 9:10 a.m. OK MS C++ TESTS 144 186 57753600 1200
68106693 vjudge5 B2 Jan. 3, 2020, 7:28 a.m. OK MS C++ TESTS 144 187 50892800 1200
68110433 vjudge2 B2 Jan. 3, 2020, 9:18 a.m. OK MS C++ TESTS 144 187 57753600 1200
67997593 vjudge4 B2 Dec. 31, 2019, 9:03 a.m. OK MS C++ TESTS 144 202 57856000 1200
68008899 vjudge1 B2 Dec. 31, 2019, 2:42 p.m. OK MS C++ TESTS 144 202 63385600 1200
65511607 vjudge3 B2 Nov. 22, 2019, 4:19 a.m. OK MS C++ TESTS 144 217 7270400 1200
61746037 vjudge2 B2 Oct. 3, 2019, 12:26 a.m. OK MS C++ TESTS 144 217 7270400 1200
61972929 PosaLusa24 B2 Oct. 6, 2019, 9:37 a.m. OK MS C++ TESTS 144 217 128307200 1200
66171938 vjudge5 B2 Dec. 2, 2019, 10:48 a.m. OK MS C++ TESTS 144 218 9625600 1200
62845383 NWDD B2 Oct. 18, 2019, 5:21 a.m. OK MS C++ 2017 TESTS 144 124 2867200 1200
62848853 NWDD B2 Oct. 18, 2019, 6:30 a.m. OK MS C++ 2017 TESTS 144 124 2867200 1200
61973229 PosaLusa24 B2 Oct. 6, 2019, 9:41 a.m. OK MS C++ 2017 TESTS 144 171 128204800 1200
61760835 vjudge3 B2 Oct. 3, 2019, 7:03 a.m. OK MS C++ 2017 TESTS 144 187 8499200 1200
62313147 vjudge5 B2 Oct. 10, 2019, 2:29 p.m. OK MS C++ 2017 TESTS 144 202 4812800 1200
62073226 holder94 B2 Oct. 7, 2019, 5:22 p.m. OK MS C++ 2017 TESTS 144 202 4915200 1200
65348251 vjudge3 B2 Nov. 19, 2019, 1:19 p.m. OK MS C++ 2017 TESTS 144 202 9830400 1200
62851409 NWDD B2 Oct. 18, 2019, 7:31 a.m. OK MS C++ 2017 TESTS 144 217 1843200 1200
62852114 NWDD B2 Oct. 18, 2019, 7:47 a.m. OK MS C++ 2017 TESTS 144 217 1843200 1200
62875231 NWDD B2 Oct. 18, 2019, 3:05 p.m. OK MS C++ 2017 TESTS 144 217 1843200 1200
61734534 shivam1420 B2 Oct. 2, 2019, 5:45 p.m. OK Node.js TESTS 144 1450 59699200 1200
62084444 nokdoot B2 Oct. 8, 2019, 12:14 a.m. OK Perl TESTS 144 343 51097600 1200
62184198 mayakin B2 Oct. 9, 2019, 7:39 a.m. OK PHP TESTS 144 311 37785600 1200
62572785 alex223 B2 Oct. 14, 2019, 3 p.m. OK PyPy 2 TESTS 144 265 23859200 1200
62572521 alex223 B2 Oct. 14, 2019, 2:56 p.m. OK PyPy 2 TESTS 144 374 26931200 1200
61770513 Leendertz B2 Oct. 3, 2019, 10 a.m. OK PyPy 3 TESTS 144 405 39936000 1200
67979066 Mkay6122 B2 Dec. 30, 2019, 6:18 p.m. OK PyPy 3 TESTS 144 530 27955200 1200
64714672 SarveshDubey B2 Nov. 11, 2019, 8:55 p.m. OK PyPy 3 TESTS 144 545 24678400 1200
68469990 juandrengifo B2 Jan. 10, 2020, 12:26 a.m. OK PyPy 3 TESTS 144 561 22528000 1200
66636684 yanpekkinen B2 Dec. 11, 2019, 1:11 p.m. OK PyPy 3 TESTS 144 561 22630400 1200
64883282 Wilmetronw B2 Nov. 14, 2019, 12:18 p.m. OK PyPy 3 TESTS 144 561 22732800 1200
67412673 PS41 B2 Dec. 22, 2019, 8:52 a.m. OK PyPy 3 TESTS 144 561 25600000 1200
64551665 hackaN00b B2 Nov. 9, 2019, midnight OK PyPy 3 TESTS 144 561 27136000 1200
61866264 hmnid B2 Oct. 4, 2019, 4:41 p.m. OK PyPy 3 TESTS 144 561 30924800 1200
66988297 weifgweuifvhewi B2 Dec. 15, 2019, 7:07 p.m. OK PyPy 3 TESTS 144 561 31232000 1200
62572795 alex223 B2 Oct. 14, 2019, 3 p.m. OK Python 2 TESTS 144 436 22323200 1200
61724758 pein_7 B2 Oct. 2, 2019, 3:02 p.m. OK Python 2 TESTS 144 514 14643200 1200
61725477 pein_7 B2 Oct. 2, 2019, 3:18 p.m. OK Python 2 TESTS 144 561 14643200 1200
61875696 mathturbator B2 Oct. 4, 2019, 8:03 p.m. OK Python 2 TESTS 144 1357 18636800 1200
62077879 elistark B2 Oct. 7, 2019, 7:11 p.m. OK Python 2 TESTS 144 1465 11776000 1200
61729619 Madhur1906 B2 Oct. 2, 2019, 4:25 p.m. OK Python 2 TESTS 144 1528 14745600 1200
61853720 orailly B2 Oct. 4, 2019, 1:28 p.m. OK Python 3 TESTS 144 249 21299200 1200
62881458 Cloverr_ B2 Oct. 18, 2019, 4:53 p.m. OK Python 3 TESTS 144 265 21708800 1200
62941037 shozy B2 Oct. 19, 2019, 3:37 p.m. OK Python 3 TESTS 144 280 22323200 1200
62592312 jamedeirosrn B2 Oct. 14, 2019, 10:01 p.m. OK Python 3 TESTS 144 295 23244800 1200
62940800 shozy B2 Oct. 19, 2019, 3:31 p.m. OK Python 3 TESTS 144 312 22323200 1200
62880781 Cloverr_ B2 Oct. 18, 2019, 4:41 p.m. OK Python 3 TESTS 144 342 22425600 1200
61866687 r_dmv B2 Oct. 4, 2019, 4:48 p.m. OK Python 3 TESTS 144 374 22425600 1200
61773711 Katushechka B2 Oct. 3, 2019, 11:03 a.m. OK Python 3 TESTS 144 374 22732800 1200
61759945 duanhv B2 Oct. 3, 2019, 6:46 a.m. OK Python 3 TESTS 144 374 23347200 1200
62592006 jamedeirosrn B2 Oct. 14, 2019, 9:49 p.m. OK Python 3 TESTS 144 374 31744000 1200
62045429 nemi_zzz B2 Oct. 7, 2019, 7:23 a.m. OK Ruby TESTS 144 483 45056000 1200
62971251 koka831 B2 Oct. 20, 2019, 7 a.m. OK Rust TESTS 144 155 5529600 1200
61882917 chinmaykousik1 B2 Oct. 5, 2019, 1:36 a.m. OK Rust TESTS 144 155 12697600 1200

remove filters

Back to search problems