Codeforces Round 466 (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
940 Codeforces Round 466 (Div. 2) FINISHED False 7200 217715063 Feb. 24, 2018, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2707 ) F Machine Learning PROGRAMMING brute force data structures 2600

B'You come home and fell some unpleasant smell. Where is it coming from? You are given an array a. You have to answer the following queries: The Mex of a multiset of numbers is the smallest non-negative integer not in the set. Note that in this problem all elements of a are positive, which means that c0 = 0 and 0 is never the answer for the query of the second type. The first line of input contains two integers n and q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the length of the array and the number of queries respectively. The second line of input contains n integers -- a1, a2, ..., an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Each of the next q lines describes a single query. The first type of query is described by three integers ti xe2 x80 x89= xe2 x80 x891, li, ri, where 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n -- the bounds of the subarray. The second type of query is described by three integers ti xe2 x80 x89= xe2 x80 x892, pi, xi, where 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n is the index of the element, which must be changed and 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109 is the new value. For each query of the first type output a single integer -- the Mex of {c0, xe2 x80 x89c1, xe2 x80 x89..., xe2 x80 x89c109}. The subarray of the first query consists of the single element -- 1. The subarray of the second query consists of four 2s, one 3 and two 1s. The subarray of the fourth query consists of three 1s, three 2s and one 3. '...

Tutorials

[Editorial] Codeforces Round #466 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
38594936 LordVoldebug F May 24, 2018, 7 p.m. OK GNU C++ TESTS 88 592 15564800 2600
35684192 cz_xuyixuan F Feb. 25, 2018, 2:57 p.m. OK GNU C++ TESTS 88 592 17612800 2600
38148059 xsc F May 12, 2018, 8:51 p.m. OK GNU C++ TESTS 88 592 19046400 2600
38148451 xsc F May 12, 2018, 9:24 p.m. OK GNU C++ TESTS 88 608 19046400 2600
35721883 vjudge5 F Feb. 26, 2018, 6:34 a.m. OK GNU C++ TESTS 88 670 13107200 2600
35803155 vjudge5 F March 1, 2018, 6:05 a.m. OK GNU C++ TESTS 88 702 12390400 2600
35684148 cz_xuyixuan F Feb. 25, 2018, 2:56 p.m. OK GNU C++ TESTS 88 717 17612800 2600
40234390 vjudge1 F July 12, 2018, 1:54 p.m. OK GNU C++ TESTS 88 763 22732800 2600
35805694 zhhx F March 1, 2018, 8:12 a.m. OK GNU C++ TESTS 88 858 7475200 2600
35684123 cz_xuyixuan F Feb. 25, 2018, 2:55 p.m. OK GNU C++ TESTS 88 889 17612800 2600
45540526 Dungeon F Nov. 10, 2018, 7:08 p.m. OK GNU C++11 TESTS 88 514 13824000 2600
45356014 TheWayISteppedOutTheCar F Nov. 6, 2018, 8:26 a.m. OK GNU C++11 TESTS 88 514 13824000 2600
40978036 ReaLNero1 F July 30, 2018, 4:28 p.m. OK GNU C++11 TESTS 88 529 10342400 2600
35669223 kczno1 F Feb. 25, 2018, 5:55 a.m. OK GNU C++11 TESTS 88 530 12390400 2600
46059205 Dungeon F Nov. 22, 2018, 12:30 p.m. OK GNU C++11 TESTS 88 530 13824000 2600
45355524 TheWayISteppedOutTheCar F Nov. 6, 2018, 8:09 a.m. OK GNU C++11 TESTS 88 530 13824000 2600
46041514 nikit523 F Nov. 21, 2018, 8:13 p.m. OK GNU C++11 TESTS 88 546 13824000 2600
38654976 vjudge4 F May 27, 2018, 12:14 p.m. OK GNU C++11 TESTS 88 576 13824000 2600
45098758 Cothrax F Oct. 30, 2018, 12:57 p.m. OK GNU C++11 TESTS 88 576 14336000 2600
38655008 vjudge2 F May 27, 2018, 12:15 p.m. OK GNU C++11 TESTS 88 576 14848000 2600
52896902 yzyyylx F April 17, 2019, 9:15 a.m. OK GNU C++14 TESTS 88 467 15769600 2600
52897212 yzyyylx F April 17, 2019, 9:29 a.m. OK GNU C++14 TESTS 88 468 15769600 2600
35666190 flukehn F Feb. 25, 2018, 2:22 a.m. OK GNU C++14 TESTS 88 607 12390400 2600
35666220 flukehn F Feb. 25, 2018, 2:24 a.m. OK GNU C++14 TESTS 88 623 12390400 2600
35666210 flukehn F Feb. 25, 2018, 2:23 a.m. OK GNU C++14 TESTS 88 623 12390400 2600
35722594 comfile F Feb. 26, 2018, 7:04 a.m. OK GNU C++14 TESTS 88 639 12390400 2600
35721085 comfile F Feb. 26, 2018, 5:59 a.m. OK GNU C++14 TESTS 88 639 12390400 2600
66030638 ragen F Nov. 30, 2019, 10:03 a.m. OK GNU C++14 TESTS 88 670 7168000 2600
66997541 MinecraftFuns F Dec. 16, 2019, 3:17 a.m. OK GNU C++14 TESTS 88 670 14438400 2600
35963530 ztzshiwo F March 5, 2018, 11:39 a.m. OK GNU C++14 TESTS 88 685 15872000 2600
40977591 ReaLNero1 F July 30, 2018, 4:17 p.m. OK GNU C++17 TESTS 88 561 10547200 2600
50654583 TD2R F March 1, 2019, 6:59 p.m. OK GNU C++17 TESTS 88 608 8806400 2600
41634655 karasek F Aug. 15, 2018, 9:43 p.m. OK GNU C++17 TESTS 88 624 7372800 2600
41634659 karasek F Aug. 15, 2018, 9:44 p.m. OK GNU C++17 TESTS 88 638 7372800 2600
41634662 karasek F Aug. 15, 2018, 9:44 p.m. OK GNU C++17 TESTS 88 639 7372800 2600
41634649 karasek F Aug. 15, 2018, 9:43 p.m. OK GNU C++17 TESTS 88 654 7372800 2600
50654074 TD2R F March 1, 2019, 6:47 p.m. OK GNU C++17 TESTS 88 670 6451200 2600
41634642 karasek F Aug. 15, 2018, 9:42 p.m. OK GNU C++17 TESTS 88 670 7372800 2600
41634625 karasek F Aug. 15, 2018, 9:41 p.m. OK GNU C++17 TESTS 88 670 7372800 2600
45743060 MAKCOH F Nov. 14, 2018, 7:08 p.m. OK GNU C++17 TESTS 88 670 406016000 2600
63992872 vjudge2 F Nov. 1, 2019, 1:41 p.m. OK Go TESTS 88 1325 18739200 2600
63992758 WangJialei F Nov. 1, 2019, 1:39 p.m. OK Go TESTS 88 1325 18739200 2600
36073194 palayutm F March 8, 2018, 1:57 p.m. OK Java 8 TESTS 88 1934 30412800 2600
36255017 ashwanthmuruhathasan F March 13, 2018, 4:10 p.m. OK Java 8 TESTS 88 2012 24985600 2600
35757633 Taran_1407 F Feb. 27, 2018, 10:01 a.m. OK Java 8 TESTS 88 2058 37683200 2600
36227348 dalt F March 12, 2018, 2:41 p.m. OK Java 8 TESTS 88 2167 40857600 2600
35831152 chandan5284 F March 2, 2018, 9:37 a.m. OK Java 8 TESTS 88 2246 24985600 2600
36049483 Dreamchaser101 F March 7, 2018, 3:31 p.m. OK Java 8 TESTS 88 2261 47513600 2600
35830954 chandan5284 F March 2, 2018, 9:32 a.m. OK Java 8 TESTS 88 2340 24985600 2600
35988692 -turo F March 6, 2018, 10:46 a.m. OK Java 8 TESTS 88 2402 47513600 2600
35757566 Taran_1407 F Feb. 27, 2018, 9:58 a.m. OK Java 8 TESTS 88 2542 37683200 2600
35820803 warrior_c F March 1, 2018, 10:13 p.m. OK Java 8 TESTS 88 2589 41267200 2600
65914687 vjudge2 F Nov. 28, 2019, 2:08 p.m. OK MS C++ TESTS 88 998 10444800 2600
66643902 vjudge4 F Dec. 11, 2019, 3:52 p.m. OK MS C++ TESTS 88 1122 11161600 2600
36213875 acmerwu F March 12, 2018, 2:45 a.m. OK MS C++ TESTS 88 1450 54169600 2600
68719076 wawahaha F Jan. 13, 2020, 3:33 p.m. OK MS C++ TESTS 88 1465 8806400 2600
63052331 vjudge3 F Oct. 21, 2019, 3:35 a.m. OK MS C++ TESTS 88 1543 44134400 2600
65914322 vjudge5 F Nov. 28, 2019, 2:01 p.m. OK MS C++ TESTS 88 2324 8396800 2600
54098717 ght5160 F May 14, 2019, 2:32 p.m. OK MS C++ 2017 TESTS 88 1138 16896000 2600
57501474 Pumpkin_Mine F July 22, 2019, 10:21 a.m. OK MS C++ 2017 TESTS 88 1497 11264000 2600
63063605 vjudge1 F Oct. 21, 2019, 9:49 a.m. OK MS C++ 2017 TESTS 88 1512 11264000 2600
63059973 vjudge5 F Oct. 21, 2019, 8:15 a.m. OK MS C++ 2017 TESTS 88 1544 5222400 2600
56472847 C20191522 F July 3, 2019, 11:55 a.m. OK MS C++ 2017 TESTS 88 1544 16384000 2600
63061337 vjudge3 F Oct. 21, 2019, 8:47 a.m. OK MS C++ 2017 TESTS 88 1560 13209600 2600
63063555 vjudge1 F Oct. 21, 2019, 9:47 a.m. OK MS C++ 2017 TESTS 88 1560 15667200 2600
63063380 vjudge4 F Oct. 21, 2019, 9:42 a.m. OK MS C++ 2017 TESTS 88 1809 15667200 2600
57501377 Pumpkin_Mine F July 22, 2019, 10:18 a.m. OK MS C++ 2017 TESTS 88 2043 11264000 2600
57496927 Pumpkin_Mine F July 22, 2019, 8:50 a.m. OK MS C++ 2017 TESTS 88 2402 11264000 2600
40372571 vain0 F July 15, 2018, 8:59 a.m. OK Rust TESTS 88 1715 11980800 2600

remove filters

Back to search problems