VK Cup 2018 - Round 1

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
923 VK Cup 2018 - Round 1 FINISHED False 7200 211127099 March 10, 2018, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1198 ) D Picking Strings PROGRAMMING constructive algorithms implementation strings 2500

B"Alice has a string consisting of characters 'A', 'B' and 'C'. Bob can use the following transitions on any substring of our string in any order any number of times: Note that a substring is one or more consecutive characters. For given queries, determine whether it is possible to obtain the target string from source. The first line contains a string S (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|S| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains a string T (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|T| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), each of these strings consists only of uppercase English letters 'A', 'B' and 'C'. The third line contains the number of queries Q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89Q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The following Q lines describe queries. The i-th of these lines contains four space separated integers ai, bi, ci, di. These represent the i-th query: is it possible to create T[ci..di] from S[ai..bi] by applying the above transitions finite amount of times? Here, U[x..y] is a substring of U that begins at index x (indexed from 1) and ends at index y. In particular, U[1..|U|] is the whole string U. It is guaranteed that 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|S| and 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89c xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89d xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|T|. Print a string of Q characters, where the i-th character is '1' if the answer to the i-th query is positive, and '0' otherwise. In the first query we can achieve the result, for instance, by using transitions . The third query asks for changing AAB to A -- but in this case we are not able to get rid of the character 'B'. "...

Tutorials

VK Cup 2018 Round 1 and CF Round #470 (div. 1 & 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
36250858 X_o_r D March 13, 2018, 1:43 p.m. OK GNU C++ TESTS 109 46 3686400 2500
36296040 luogu_bot3 D March 15, 2018, 10:43 a.m. OK GNU C++ TESTS 109 46 3788800 2500
37342703 jiyutian D April 15, 2018, 3:33 a.m. OK GNU C++ TESTS 109 46 5120000 2500
40675170 Position D July 23, 2018, 2:56 p.m. OK GNU C++ TESTS 109 46 6553600 2500
39984853 Administratom D July 5, 2018, 12:57 p.m. OK GNU C++ TESTS 109 46 13004800 2500
36238933 scy_666 D March 13, 2018, 4:41 a.m. OK GNU C++ TESTS 109 78 3686400 2500
36296410 kakakaka D March 15, 2018, 10:58 a.m. OK GNU C++ TESTS 109 78 4300800 2500
36299367 sijunqianli D March 15, 2018, 12:29 p.m. OK GNU C++ TESTS 109 78 5529600 2500
36193769 langsike D March 11, 2018, 9:19 a.m. OK GNU C++ TESTS 109 78 12083200 2500
39743790 vjudge1 D June 28, 2018, 1:08 p.m. OK GNU C++ TESTS 109 93 2662400 2500
36184948 Icyfox D March 11, 2018, 4:14 a.m. OK GNU C++11 TESTS 109 31 3788800 2500
36253217 newbiegcz D March 13, 2018, 3:01 p.m. OK GNU C++11 TESTS 109 31 3891200 2500
40971478 ReaLNero1 D July 30, 2018, 1:22 p.m. OK GNU C++11 TESTS 109 46 1843200 2500
36181912 cuizhuyefei D March 11, 2018, 12:39 a.m. OK GNU C++11 TESTS 109 46 11059200 2500
36213286 zzb111 D March 12, 2018, 1:44 a.m. OK GNU C++11 TESTS 109 46 20787200 2500
36185806 zlc1114 D March 11, 2018, 4:59 a.m. OK GNU C++11 TESTS 109 62 7782400 2500
57768034 py_ultron D July 25, 2019, 10:04 p.m. OK GNU C++11 TESTS 109 78 1843200 2500
57871562 lopare D July 28, 2019, 2:13 a.m. OK GNU C++11 TESTS 109 78 1843200 2500
63011314 TianZuiXing D Oct. 20, 2019, 11:49 a.m. OK GNU C++11 TESTS 109 78 3584000 2500
36253853 MudCoal D March 13, 2018, 3:24 p.m. OK GNU C++11 TESTS 109 78 3686400 2500
36185228 nukeykt D March 11, 2018, 4:30 a.m. OK GNU C++14 TESTS 109 77 3891200 2500
56875147 KwanghyunOn D July 12, 2019, 8 a.m. OK GNU C++14 TESTS 109 93 1843200 2500
51880884 RNS_JKS D March 27, 2019, 12:19 a.m. OK GNU C++14 TESTS 109 93 1843200 2500
36177114 lchi1997 D March 10, 2018, 7:34 p.m. OK GNU C++14 TESTS 109 93 3686400 2500
36193342 HackerTina D March 11, 2018, 9:03 a.m. OK GNU C++14 TESTS 109 93 3686400 2500
36191369 nqiiii D March 11, 2018, 8:01 a.m. OK GNU C++14 TESTS 109 93 3686400 2500
36187330 Minnakhmetov D March 11, 2018, 5:51 a.m. OK GNU C++14 TESTS 109 93 3686400 2500
36176959 RUSH_D_CAT D March 10, 2018, 7:31 p.m. OK GNU C++14 TESTS 109 93 3686400 2500
36420664 mohamedeltair D March 19, 2018, 8:53 p.m. OK GNU C++14 TESTS 109 93 6246400 2500
36180555 akim D March 10, 2018, 10:15 p.m. OK GNU C++14 TESTS 109 93 7270400 2500
53582408 HIT_Attacker D April 30, 2019, 4:21 p.m. OK GNU C++17 TESTS 109 93 1126400 2500
53106309 Jester D April 21, 2019, 8:18 p.m. OK GNU C++17 TESTS 109 108 1945600 2500
51843814 luogu_bot3 D March 26, 2019, 2:05 a.m. OK GNU C++17 TESTS 109 109 1638400 2500
63397811 SHZhang2 D Oct. 25, 2019, 5:15 p.m. OK GNU C++17 TESTS 109 109 1843200 2500
41423426 congmingyige D Aug. 10, 2018, 8:09 a.m. OK GNU C++17 TESTS 109 109 2150400 2500
62754816 HelloCodeforce D Oct. 17, 2019, 3:54 a.m. OK GNU C++17 TESTS 109 124 2150400 2500
67433540 ivan100sic D Dec. 22, 2019, 4:09 p.m. OK GNU C++17 TESTS 109 124 2150400 2500
62754852 _PortgasD.Ace_ D Oct. 17, 2019, 3:56 a.m. OK GNU C++17 TESTS 109 124 2150400 2500
68284590 fsociety00 D Jan. 5, 2020, 6:02 p.m. OK GNU C++17 TESTS 109 124 2969600 2500
36181417 dendi239 D March 10, 2018, 11:43 p.m. OK GNU C++17 TESTS 109 124 4096000 2500
36336816 beroul D March 16, 2018, 8:59 p.m. OK Java 8 TESTS 109 171 20787200 2500
36180966 tmwilliamlin168 D March 10, 2018, 10:58 p.m. OK Java 8 TESTS 109 171 20889600 2500
36336743 beroul D March 16, 2018, 8:53 p.m. OK Java 8 TESTS 109 186 20992000 2500
36336802 beroul D March 16, 2018, 8:58 p.m. OK Java 8 TESTS 109 187 20889600 2500
36270246 dalt D March 14, 2018, 9:46 a.m. OK Java 8 TESTS 109 202 20787200 2500
38969884 habanera D June 5, 2018, 1:27 p.m. OK Java 8 TESTS 109 218 20889600 2500
43051542 tusg25 D Sept. 18, 2018, 10:07 p.m. OK Java 8 TESTS 109 233 0 2500
36189963 vadimmm D March 11, 2018, 7:16 a.m. OK Java 8 TESTS 109 233 20787200 2500
36170934 Petruchcho pitfall D March 10, 2018, 5:11 p.m. OK Java 8 TESTS 109 233 20787200 2500
36444279 4mda4mda D March 21, 2018, 12:54 a.m. OK Java 8 TESTS 109 234 20787200 2500
36177704 Taube D March 10, 2018, 7:49 p.m. OK MS C++ TESTS 109 62 4812800 2500
36165731 Perforator BledDest D March 10, 2018, 4:36 p.m. OK MS C++ TESTS 109 77 4812800 2500
36166982 orz doreshnikov D March 10, 2018, 4:44 p.m. OK MS C++ TESTS 109 296 3993600 2500
36174420 Ancient_mage jk_qq D March 10, 2018, 5:31 p.m. OK MS C++ TESTS 109 358 75878400 2500
42594417 ilya_ust D Sept. 6, 2018, 9:58 p.m. OK PyPy 3 TESTS 109 1996 11878400 2500
36180984 belkka D March 10, 2018, 11 p.m. OK Python 3 TESTS 109 685 18534400 2500
36213888 dendi239 D March 12, 2018, 2:46 a.m. OK Python 3 TESTS 109 717 13516800 2500
36213900 dendi239 D March 12, 2018, 2:48 a.m. OK Python 3 TESTS 109 733 13004800 2500
36213924 dendi239 D March 12, 2018, 2:50 a.m. OK Python 3 TESTS 109 748 13004800 2500
36186685 Yee_172 D March 11, 2018, 5:30 a.m. OK Python 3 TESTS 109 967 12390400 2500
42594398 ilya_ust D Sept. 6, 2018, 9:57 p.m. OK Python 3 TESTS 109 1980 7270400 2500
36283484 nikolos00 D March 14, 2018, 5:26 p.m. OK Ruby TESTS 109 1060 9420800 2500

remove filters

Back to search problems