Codeforces Round 586 (Div. 1 + 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
1220 Codeforces Round 586 (Div. 1 + Div. 2) FINISHED False 7200 168616487 Sept. 18, 2019, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3960 ) D Alex and Julian PROGRAMMING bitmasks math number theory 1900

B"Boy Dima gave Julian a birthday present -- set B consisting of positive integers. However, he didn't know, that Julian hates sets, but enjoys bipartite graphs more than anything else! Julian was almost upset, but her friend Alex said, that he can build an undirected graph using this set in such a way: let all integer numbers be vertices, then connect any two i and j with an edge if |i - j| belongs to B . Unfortunately, Julian doesn't like the graph, that was built using B . Alex decided to rectify the situation, so he wants to erase some numbers from B , so that graph built using the new set is bipartite. The difficulty of this task is that the graph, Alex has to work with, has an infinite number of vertices and edges! It is impossible to solve this task alone, so Alex asks you for help. Write a program that erases a subset of minimum size from B so that graph constructed on the new set is bipartite. Recall, that graph is bipartite if all its vertices can be divided into two disjoint sets such that every edge connects a vertex from different sets. First line contains an integer n ~ (1 <= qslant n <= qslant 200 ,000) -- size of B Second line contains n integers b_1, b_2, ldots, b_n ~ (1 <= qslant b_i <= qslant 10^{18}) -- numbers of B , all b_i are unique In the first line print single integer k xe2 x80 x93 the number of erased elements. In the second line print k integers -- values of erased elements. If there are multiple answers, print any of them. "...

Tutorials

Codeforces Round #586 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66157020 rr_ D Dec. 2, 2019, midnight OK D TESTS 54 312 16998400 1900
66157043 rr_ D Dec. 2, 2019, 12:03 a.m. OK D TESTS 54 327 11571200 1900
66157067 rr_ D Dec. 2, 2019, 12:05 a.m. OK D TESTS 54 358 17100800 1900
60825828 ruban D Sept. 19, 2019, 3:53 a.m. OK Delphi TESTS 54 1013 195788800 1900
60809706 pengin_2000 D Sept. 18, 2019, 5:54 p.m. OK GNU C11 TESTS 54 1247 1638400 1900
61093560 yasugongshang D Sept. 23, 2019, 12:32 a.m. OK GNU C++11 TESTS 54 77 3993600 1900
60910133 chenyewei_1234 D Sept. 20, 2019, 5:24 a.m. OK GNU C++11 TESTS 54 78 3993600 1900
60803976 lzoilxy D Sept. 18, 2019, 5:23 p.m. OK GNU C++11 TESTS 54 78 24064000 1900
64142118 M_sea D Nov. 3, 2019, 8:50 a.m. OK GNU C++11 TESTS 54 93 1638400 1900
64655052 Karry5307 D Nov. 10, 2019, 7 p.m. OK GNU C++11 TESTS 54 93 1638400 1900
62560368 2016c01 D Oct. 14, 2019, 11:48 a.m. OK GNU C++11 TESTS 54 93 2252800 1900
61003591 luogu_bot4 D Sept. 21, 2019, 10:28 a.m. OK GNU C++11 TESTS 54 93 2252800 1900
61003562 CTP_314 D Sept. 21, 2019, 10:27 a.m. OK GNU C++11 TESTS 54 93 2252800 1900
63781536 LuciferX07 D Oct. 30, 2019, 11:10 a.m. OK GNU C++11 TESTS 54 93 2252800 1900
61592250 KaiserYang D Oct. 1, 2019, 7:27 a.m. OK GNU C++11 TESTS 54 93 2457600 1900
61784715 idxcalcal D Oct. 3, 2019, 2:09 p.m. OK GNU C++14 TESTS 54 93 6246400 1900
60954810 wleung_bvg D Sept. 21, 2019, 1:49 a.m. OK GNU C++14 TESTS 54 93 7884800 1900
60825005 hitonanode D Sept. 19, 2019, 3:18 a.m. OK GNU C++14 TESTS 54 140 1638400 1900
60934714 wiwitrifai D Sept. 20, 2019, 2:53 p.m. OK GNU C++14 TESTS 54 140 1638400 1900
60963182 Soundwiches Lilith223 ZeveLmorW D Sept. 21, 2019, 6:08 a.m. OK GNU C++14 TESTS 54 140 2457600 1900
60793926 natsugiri D Sept. 18, 2019, 4:39 p.m. OK GNU C++14 TESTS 54 140 3993600 1900
60799459 lajiyuan D Sept. 18, 2019, 5:01 p.m. OK GNU C++14 TESTS 54 140 7168000 1900
64311189 LJFan D Nov. 5, 2019, 12:49 p.m. OK GNU C++14 TESTS 54 155 1536000 1900
61064583 wir D Sept. 22, 2019, 10:37 a.m. OK GNU C++14 TESTS 54 155 1638400 1900
62039614 Rabbittank D Oct. 7, 2019, 5:27 a.m. OK GNU C++14 TESTS 54 155 1740800 1900
61249838 RNS_KSB D Sept. 25, 2019, 7:47 a.m. OK GNU C++17 TESTS 54 77 5734400 1900
60810328 zengzk D Sept. 18, 2019, 5:57 p.m. OK GNU C++17 TESTS 54 109 3276800 1900
69707101 Aphelios D Jan. 29, 2020, 5:15 a.m. OK GNU C++17 TESTS 54 140 3993600 1900
60846193 201831990439 D Sept. 19, 2019, 12:37 p.m. OK GNU C++17 TESTS 54 140 6041600 1900
61249521 RNS_CUS D Sept. 25, 2019, 7:40 a.m. OK GNU C++17 TESTS 54 155 1638400 1900
60798276 sjhi00 D Sept. 18, 2019, 4:56 p.m. OK GNU C++17 TESTS 54 155 2355200 1900
60823383 dkflfkdeh D Sept. 19, 2019, 2:08 a.m. OK GNU C++17 TESTS 54 155 3174400 1900
60797266 julianfernando D Sept. 18, 2019, 4:52 p.m. OK GNU C++17 TESTS 54 155 6348800 1900
60815186 LowR D Sept. 18, 2019, 8 p.m. OK GNU C++17 TESTS 54 156 1638400 1900
61291973 Grzmot D Sept. 25, 2019, 9:20 p.m. OK GNU C++17 TESTS 54 156 2457600 1900
61294478 sighduck D Sept. 25, 2019, 11:35 p.m. OK Go TESTS 54 373 5324800 1900
60827487 T_Nady D Sept. 19, 2019, 5:03 a.m. OK Java 8 TESTS 54 202 0 1900
60815547 petr_op D Sept. 18, 2019, 8:07 p.m. OK Java 8 TESTS 54 202 0 1900
60797270 iceburst D Sept. 18, 2019, 4:52 p.m. OK Java 8 TESTS 54 202 0 1900
60806923 KharYusuf D Sept. 18, 2019, 5:39 p.m. OK Java 8 TESTS 54 217 0 1900
60798041 AryssonFigueiredo D Sept. 18, 2019, 4:55 p.m. OK Java 8 TESTS 54 218 15257600 1900
65613933 AnandOza D Nov. 24, 2019, 1:58 a.m. OK Java 8 TESTS 54 234 13516800 1900
60818460 guillermo_sz D Sept. 18, 2019, 9:47 p.m. OK Java 8 TESTS 54 249 13516800 1900
60926140 prakhar897 D Sept. 20, 2019, 12:20 p.m. OK Java 8 TESTS 54 264 0 1900
60807959 chojh1222 D Sept. 18, 2019, 5:44 p.m. OK Java 8 TESTS 54 264 0 1900
60797437 uwi D Sept. 18, 2019, 4:53 p.m. OK Java 8 TESTS 54 264 0 1900
64187698 Spheniscine D Nov. 4, 2019, 6:12 a.m. OK Kotlin TESTS 54 280 30617600 1900
64187409 Spheniscine D Nov. 4, 2019, 6:03 a.m. OK Kotlin TESTS 54 311 34099200 1900
62834975 darnley D Oct. 17, 2019, 9:47 p.m. OK Kotlin TESTS 54 608 22732800 1900
60810429 pavelk108 D Sept. 18, 2019, 5:57 p.m. OK Kotlin TESTS 54 639 18739200 1900
60793080 Kenb D Sept. 18, 2019, 4:36 p.m. OK Kotlin TESTS 54 670 18739200 1900
60838944 omikad D Sept. 19, 2019, 10:09 a.m. OK Mono C# TESTS 54 342 60416000 1900
60802333 plasma-effect D Sept. 18, 2019, 5:15 p.m. OK Mono C# TESTS 54 545 54784000 1900
60989778 vjudge4 D Sept. 21, 2019, 8:23 a.m. OK MS C++ TESTS 54 187 2457600 1900
60808117 tarattata1 D Sept. 18, 2019, 5:45 p.m. OK MS C++ TESTS 54 187 2457600 1900
61429702 vjudge3 D Sept. 28, 2019, 2:16 p.m. OK MS C++ TESTS 54 202 5427200 1900
61702399 vjudge2 D Oct. 2, 2019, 8:57 a.m. OK MS C++ TESTS 54 202 5836800 1900
60845881 efyjef D Sept. 19, 2019, 12:32 p.m. OK MS C++ TESTS 54 436 6963200 1900
60805744 Hiedo D Sept. 18, 2019, 5:32 p.m. OK MS C++ 2017 TESTS 54 202 2457600 1900
60814605 youx D Sept. 18, 2019, 7:54 p.m. OK MS C++ 2017 TESTS 54 218 4300800 1900
60795656 pichulia D Sept. 18, 2019, 4:45 p.m. OK MS C++ 2017 TESTS 54 218 12083200 1900
61881286 eyTns D Oct. 4, 2019, 11:57 p.m. OK MS C++ 2017 TESTS 54 249 3276800 1900
60801427 Simon_Chen D Sept. 18, 2019, 5:10 p.m. OK MS C++ 2017 TESTS 54 390 2457600 1900
60816692 CrashMaster D Sept. 18, 2019, 8:38 p.m. OK MS C++ 2017 TESTS 54 405 4096000 1900
60815212 L0u1Za D Sept. 18, 2019, 8:01 p.m. OK MS C++ 2017 TESTS 54 405 4403200 1900
62057928 Ancient_mage D Oct. 7, 2019, 12:42 p.m. OK MS C++ 2017 TESTS 54 405 5836800 1900
60818853 AlexanderL D Sept. 18, 2019, 10:07 p.m. OK MS C++ 2017 TESTS 54 420 1638400 1900
60802382 Timonnable D Sept. 18, 2019, 5:15 p.m. OK MS C++ 2017 TESTS 54 421 5939200 1900
60843600 kabeer27 D Sept. 19, 2019, 11:49 a.m. OK PyPy 2 TESTS 54 452 40652800 1900
60843507 kabeer27 D Sept. 19, 2019, 11:47 a.m. OK PyPy 2 TESTS 54 483 39526400 1900
60808951 alexwice D Sept. 18, 2019, 5:50 p.m. OK PyPy 2 TESTS 54 514 31948800 1900
60802672 zdbtxdy D Sept. 18, 2019, 5:16 p.m. OK PyPy 2 TESTS 54 530 43008000 1900
60842942 kabeer27 D Sept. 19, 2019, 11:37 a.m. OK PyPy 2 TESTS 54 545 39526400 1900
60843181 kabeer27 D Sept. 19, 2019, 11:41 a.m. OK PyPy 2 TESTS 54 546 39424000 1900
60843440 kabeer27 D Sept. 19, 2019, 11:46 a.m. OK PyPy 2 TESTS 54 639 39731200 1900
60843482 kabeer27 D Sept. 19, 2019, 11:47 a.m. OK PyPy 2 TESTS 54 701 39731200 1900
60814390 ssk497 D Sept. 18, 2019, 7:52 p.m. OK PyPy 2 TESTS 54 1902 23449600 1900
61332727 tjake D Sept. 26, 2019, 3:30 p.m. OK PyPy 3 TESTS 54 841 28467200 1900
60838182 RalorSell D Sept. 19, 2019, 9:52 a.m. OK PyPy 3 TESTS 54 872 27750400 1900
60835399 PS41 D Sept. 19, 2019, 8:47 a.m. OK PyPy 3 TESTS 54 872 27750400 1900
60834847 Grafiore xiaoqiang200015 sssSSSay D Sept. 19, 2019, 8:34 a.m. OK PyPy 3 TESTS 54 872 30412800 1900
60799358 pineriver D Sept. 18, 2019, 5:01 p.m. OK PyPy 3 TESTS 54 873 27136000 1900
60806920 dn6049949 D Sept. 18, 2019, 5:39 p.m. OK PyPy 3 TESTS 54 920 36454400 1900
60802626 titia D Sept. 18, 2019, 5:16 p.m. OK PyPy 3 TESTS 54 982 27443200 1900
62596155 ddytxdy D Oct. 15, 2019, 1:59 a.m. OK PyPy 3 TESTS 54 982 30822400 1900
60969760 wishcode D Sept. 21, 2019, 7:15 a.m. OK PyPy 3 TESTS 54 982 30822400 1900
62630821 jayantjain100 D Oct. 15, 2019, 3:23 p.m. OK PyPy 3 TESTS 54 998 32256000 1900
60793563 nwi D Sept. 18, 2019, 4:38 p.m. OK Python 2 TESTS 54 420 23040000 1900
61015713 ulyabelyaeva D Sept. 21, 2019, 1:19 p.m. OK Python 3 TESTS 54 468 20582400 1900
61381320 raushan303 D Sept. 27, 2019, 5:34 p.m. OK Python 3 TESTS 54 1185 19865600 1900
61001154 dohduh D Sept. 21, 2019, 9:36 a.m. OK Python 3 TESTS 54 1231 20275200 1900
61459135 dhruv.agarwal331 D Sept. 29, 2019, 7:48 a.m. OK Python 3 TESTS 54 1263 19865600 1900
64111691 erickjohnross D Nov. 2, 2019, 6:56 p.m. OK Python 3 TESTS 54 1544 19763200 1900
61731794 deadguy D Oct. 2, 2019, 4:58 p.m. OK Python 3 TESTS 54 1606 20275200 1900
60944375 Sevlll D Sept. 20, 2019, 6:17 p.m. OK Python 3 TESTS 54 1653 20275200 1900
60814515 SinKing D Sept. 18, 2019, 7:53 p.m. OK Python 3 TESTS 54 1840 19865600 1900
60822520 NocturneBflat D Sept. 19, 2019, 1:27 a.m. OK Python 3 TESTS 54 1887 20582400 1900
64476498 vjudge1 D Nov. 7, 2019, 2:33 p.m. OK Python 3 TESTS 54 1965 20377600 1900
60963937 sansen D Sept. 21, 2019, 6:24 a.m. OK Rust TESTS 54 93 11776000 1900
60818831 ValenKof D Sept. 18, 2019, 10:06 p.m. OK Rust TESTS 54 93 15974400 1900
60830321 Lancern D Sept. 19, 2019, 6:37 a.m. OK Rust TESTS 54 124 5324800 1900
60804823 yakamoto D Sept. 18, 2019, 5:27 p.m. OK Scala TESTS 54 810 46899200 1900

remove filters

Back to search problems