VK Cup 2016 - Round 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
641 VK Cup 2016 - Round 2 FINISHED False 7200 276096304 April 24, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3356 ) E Little Artem and Time Machine PROGRAMMING data structures 2000

B"Little Artem has invented a time machine! He could go anywhere in time, but all his thoughts of course are with computer science. He wants to apply this time machine to a well-known data structure: multiset. Artem wants to create a basic multiset of integers. He wants these structure to support operations of three types: But what about time machine? Artem doesn't simply apply operations to the multiset one by one, he now travels to different moments of time and apply his operation there. Consider the following example. Note that Artem dislikes exceptions so much that he assures that after each change he makes all delete operations are applied only to element that is present in the multiset. The answer to the query of the third type is computed at the moment Artem makes the corresponding query and are not affected in any way by future changes he makes. Help Artem implement time travellers multiset. The first line of the input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the number of Artem's queries. Then follow n lines with queries descriptions. Each of them contains three integers ai, ti and xi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti, xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- type of the query, moment of time Artem travels to in order to execute this query and the value of the query itself, respectively. It's guaranteed that all moments of time are distinct and that after each operation is applied all operations of the first and second types are consistent. For each ask operation output the number of instances of integer being queried at the given moment of time. "...

Tutorials

VK Cup 2016 — Раунд 2 (editorial)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
17499360 Sanja E April 24, 2016, 9:40 p.m. OK FPC TESTS 45 343 202035200 2000
17700125 Sanja E May 3, 2016, 3:29 p.m. OK FPC TESTS 45 343 202137600 2000
17499259 Sanja E April 24, 2016, 9:34 p.m. OK FPC TESTS 45 389 242278400 2000
40984869 ReaLNero1 E July 30, 2018, 7:37 p.m. OK GNU C++ TESTS 45 62 32256000 2000
40612034 LaiAng8086 E July 21, 2018, 3:08 p.m. OK GNU C++ TESTS 45 78 5324800 2000
17492912 Yury_Bandarchuk den2204 E April 24, 2016, 5:51 p.m. OK GNU C++ TESTS 45 78 74444800 2000
33481122 vjudge2 E Dec. 21, 2017, 1:24 p.m. OK GNU C++ TESTS 45 92 50176000 2000
18852106 black_horse2014 E July 2, 2016, 9:43 a.m. OK GNU C++ TESTS 45 93 5222400 2000
17550121 SanSiroWaltz E April 28, 2016, 7 a.m. OK GNU C++ TESTS 45 93 5222400 2000
17505042 azui E April 25, 2016, 8:09 a.m. OK GNU C++ TESTS 45 93 7782400 2000
41905991 Scut82 E Aug. 20, 2018, 2:38 p.m. OK GNU C++ TESTS 45 93 12083200 2000
18045734 Khusainova E May 23, 2016, 3:51 p.m. OK GNU C++ TESTS 45 93 24678400 2000
17926623 function348 E May 16, 2016, 3:58 a.m. OK GNU C++ TESTS 45 93 55808000 2000
17489124 maksay KADR E April 24, 2016, 5:18 p.m. OK GNU C++11 TESTS 45 46 34406400 2000
17492582 maxkvant MZuev E April 24, 2016, 5:48 p.m. OK GNU C++11 TESTS 45 62 25804800 2000
31171553 Amayoneko E Oct. 9, 2017, 3:34 p.m. OK GNU C++11 TESTS 45 78 3584000 2000
17489969 gchebanov akashin E April 24, 2016, 5:25 p.m. OK GNU C++11 TESTS 45 78 21606400 2000
17488544 vepifanov KAN E April 24, 2016, 5:13 p.m. OK GNU C++11 TESTS 45 78 35840000 2000
17489419 Scorpy ZhNV E April 24, 2016, 5:21 p.m. OK GNU C++11 TESTS 45 78 38912000 2000
53053224 luogu_bot2 E April 20, 2019, 3:47 p.m. OK GNU C++11 TESTS 45 93 2867200 2000
67775564 Lucky_Glass E Dec. 28, 2019, 8:49 a.m. OK GNU C++11 TESTS 45 93 4096000 2000
53006035 luogu_bot2 E April 19, 2019, 9:38 a.m. OK GNU C++11 TESTS 45 93 4198400 2000
17493588 AnnKats93 romanova E April 24, 2016, 5:57 p.m. OK GNU C++11 TESTS 45 93 5017600 2000
31171497 Amayoneko E Oct. 9, 2017, 3:32 p.m. OK GNU C++14 TESTS 45 77 3686400 2000
23407220 Ali.Pi E Dec. 29, 2016, 8:30 p.m. OK GNU C++14 TESTS 45 77 35840000 2000
34000294 hamayanhamayan E Jan. 8, 2018, 9:24 a.m. OK GNU C++14 TESTS 45 109 7372800 2000
54272325 Mr_Emrul E May 17, 2019, 9:22 a.m. OK GNU C++14 TESTS 45 124 13619200 2000
49211114 vjudge5 E Jan. 30, 2019, 3:36 p.m. OK GNU C++14 TESTS 45 124 16384000 2000
32302166 NiroBC E Nov. 14, 2017, 2:37 a.m. OK GNU C++14 TESTS 45 124 40652800 2000
26414648 kvk1920 E April 16, 2017, 2:03 p.m. OK GNU C++14 TESTS 45 139 6963200 2000
25424392 shubhamgoyal__ E March 12, 2017, 5:33 a.m. OK GNU C++14 TESTS 45 139 9420800 2000
32431940 boook E Nov. 18, 2017, 1:14 p.m. OK GNU C++14 TESTS 45 140 8704000 2000
27111710 gaporf E May 14, 2017, 7:16 p.m. OK GNU C++14 TESTS 45 140 9318400 2000
50498612 kefaa2 antontrygubO_o E Feb. 25, 2019, 4:13 p.m. OK GNU C++17 TESTS 45 139 8704000 2000
39976395 n_dao107 E July 5, 2018, 7:57 a.m. OK GNU C++17 TESTS 45 139 9011200 2000
60034744 vjudge2 E Sept. 4, 2019, 4:25 p.m. OK GNU C++17 TESTS 45 139 28467200 2000
40606331 coder_h E July 21, 2018, 11:38 a.m. OK GNU C++17 TESTS 45 140 5836800 2000
69189429 dontquit E Jan. 20, 2020, 1:02 p.m. OK GNU C++17 TESTS 45 140 15052800 2000
49208585 vjudge3 E Jan. 30, 2019, 2:45 p.m. OK GNU C++17 TESTS 45 155 14336000 2000
37580750 Omar_Morsi E April 24, 2018, 6:05 p.m. OK GNU C++17 TESTS 45 155 15052800 2000
66304923 how_to_become_purple E Dec. 5, 2019, 8:56 a.m. OK GNU C++17 TESTS 45 155 123596800 2000
51588621 Catmoonlight E March 20, 2019, 5:33 p.m. OK GNU C++17 TESTS 45 156 6553600 2000
50419045 vjudge1 E Feb. 24, 2019, 8:07 a.m. OK GNU C++17 TESTS 45 170 46387200 2000
17495225 slava.sh E April 24, 2016, 6:13 p.m. OK Go TESTS 45 171 41676800 2000
17810925 meowoo E May 8, 2016, 5:26 p.m. OK Haskell TESTS 45 296 74444800 2000
17487526 mmaxio Aksenov239 E April 24, 2016, 5:06 p.m. OK Java 8 TESTS 45 233 20889600 2000
17491038 VArtem E April 24, 2016, 5:34 p.m. OK Java 8 TESTS 45 296 20684800 2000
17491812 chavit Niko E April 24, 2016, 5:41 p.m. OK Java 8 TESTS 45 296 21299200 2000
17496789 vadimmm wackloner E April 24, 2016, 6:27 p.m. OK Java 8 TESTS 45 311 37785600 2000
17963902 .tx E May 17, 2016, 9:30 a.m. OK Java 8 TESTS 45 327 20992000 2000
17964015 .tx E May 17, 2016, 9:37 a.m. OK Java 8 TESTS 45 343 21196800 2000
19605790 poikniok E Aug. 3, 2016, 9:41 p.m. OK Java 8 TESTS 45 343 38297600 2000
17493065 Slamur Sinner E April 24, 2016, 5:52 p.m. OK Java 8 TESTS 45 389 38912000 2000
17964006 .tx E May 17, 2016, 9:36 a.m. OK Java 8 TESTS 45 404 21196800 2000
19605898 poikniok E Aug. 3, 2016, 9:55 p.m. OK Java 8 TESTS 45 405 17408000 2000
17493620 sereja589 freepvps E April 24, 2016, 5:58 p.m. OK MS C# TESTS 45 405 63897600 2000
17499594 freepvps E April 24, 2016, 10 p.m. OK MS C# TESTS 45 654 69222400 2000
18516808 wa1tz719 E June 16, 2016, 9:25 a.m. OK MS C++ TESTS 45 93 2764800 2000
17488907 Umqra Um_nik E April 24, 2016, 5:16 p.m. OK MS C++ TESTS 45 109 258560000 2000
18533386 absi2011 E June 17, 2016, 12:19 a.m. OK MS C++ TESTS 45 124 4812800 2000
17496536 levonstepan sparik E April 24, 2016, 6:25 p.m. OK MS C++ TESTS 45 124 6553600 2000
17494330 TonySnark E April 24, 2016, 6:04 p.m. OK MS C++ TESTS 45 124 7270400 2000
17507085 arturom E April 25, 2016, 10:40 a.m. OK MS C++ TESTS 45 124 8704000 2000
17488315 V--o_o--V LHiC E April 24, 2016, 5:11 p.m. OK MS C++ TESTS 45 124 44339200 2000
17504399 Oleg_Smirnov E April 25, 2016, 7:17 a.m. OK MS C++ TESTS 45 124 61542400 2000
17499419 Perforator E April 24, 2016, 9:44 p.m. OK MS C++ TESTS 45 124 61542400 2000
17490702 Perforator Oleg_Smirnov E April 24, 2016, 5:31 p.m. OK MS C++ TESTS 45 124 61542400 2000
21823402 drchuck E Oct. 27, 2016, 1:42 p.m. OK Python 2 TESTS 45 873 16486400 2000
33212050 yugle7 E Dec. 13, 2017, 11:59 a.m. OK Python 3 TESTS 45 1372 23961600 2000
35887001 ______M______ E March 3, 2018, 1:57 p.m. OK Python 3 TESTS 45 1419 24473600 2000
33211856 yugle7 E Dec. 13, 2017, 11:52 a.m. OK Python 3 TESTS 45 1513 23654400 2000

remove filters

Back to search problems