Hello 2019

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
1097 Hello 2019 FINISHED False 10800 197910900 Jan. 4, 2019, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 111 ) H Mateusz and an Infinite Sequence PROGRAMMING bitmasks brute force dp strings 3000

B"A Thue-Morse-Radecki-Mateusz sequence (Thorse-Radewoosh sequence in short) is an infinite sequence constructed from a finite sequence mathrm{gen} of length d and an integer m , obtained in the following sequence of steps: For instance, if we pick mathrm{gen} = (0, color{blue}{1}, color{green}{2}) and m = 4 : As you can see, as long as the first element of mathrm{gen} is 0 , each consecutive step produces a sequence whose prefix is the sequence generated in the previous step. Therefore, we can define the infinite Thorse-Radewoosh sequence M_ infty as the sequence obtained by applying the step above indefinitely. For the parameters above, M_ infty = (0, 1, 2, 1, 2, 3, 2, 3, 0, 1, 2, 3, 2, 3, 0, 3, 0, 1, ... ) . Mateusz picked a sequence mathrm{gen} and an integer m , and used them to obtain a Thorse-Radewoosh sequence M_ infty . He then picked two integers l , r , and wrote down a subsequence of this sequence A := ((M_ infty)_l, (M_ infty)_{l+1}, ... , (M_ infty)_r) . Note that we use the 1 -based indexing both for M_ infty and A . Mateusz has his favorite sequence B with length n , and would like to see how large it is compared to A . Let's say that B majorizes sequence X of length n (let's denote it as B geq X ) if and only if for all i in {1, 2, ... , n } , we have B_i geq X_i . He now asks himself how many integers x in the range [1, |A| - n + 1] there are such that B geq (A_x, A_{x+1}, A_{x+2}, ... , A_{x+n-1}) . As both sequences were huge, answering the question using only his pen and paper turned out to be too time-consuming. Can you help him automate his research? The first line contains two integers d and m ( 2 <= q d <= q 20 , 2 <= q m <= q 60 ) -- the length of the sequence mathrm{gen} and an integer used to perform the modular operations. Th"...

Tutorials

64310

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52680037 207M H April 13, 2019, 11:53 a.m. OK GNU C++11 TESTS 114 93 32051200 3000
50080418 maxtir H Feb. 18, 2019, 3:24 a.m. OK GNU C++11 TESTS 114 93 32972800 3000
50735112 dengyixuan H March 3, 2019, 12:34 p.m. OK GNU C++11 TESTS 114 109 32051200 3000
48322476 Durant_Lee H Jan. 13, 2019, 10:05 a.m. OK GNU C++11 TESTS 114 109 32051200 3000
52676026 207M H April 13, 2019, 9:39 a.m. OK GNU C++11 TESTS 114 109 32972800 3000
50559942 HEIMAOJINGZHANG H Feb. 27, 2019, 10:23 a.m. OK GNU C++11 TESTS 114 124 75571200 3000
50560063 HEIMAOJINGZHANG H Feb. 27, 2019, 10:28 a.m. OK GNU C++11 TESTS 114 124 75776000 3000
49975879 frodakcin H Feb. 16, 2019, 5:56 a.m. OK GNU C++11 TESTS 114 170 162816000 3000
57867482 lopare H July 27, 2019, 10:17 p.m. OK GNU C++11 TESTS 114 171 29184000 3000
57734303 py_ultron H July 25, 2019, 9:29 a.m. OK GNU C++11 TESTS 114 171 29184000 3000
50773009 zhou888 H March 4, 2019, 6:25 a.m. OK GNU C++14 TESTS 114 93 27238400 3000
47956729 apiadu H Jan. 5, 2019, 6:42 a.m. OK GNU C++14 TESTS 114 93 27648000 3000
49851133 newbiegcz H Feb. 13, 2019, 3:46 a.m. OK GNU C++14 TESTS 114 93 37171200 3000
47958009 177013 H Jan. 5, 2019, 7:36 a.m. OK GNU C++14 TESTS 114 93 82329600 3000
48654363 ReaLNero1 H Jan. 21, 2019, 1:30 a.m. OK GNU C++14 TESTS 114 108 27648000 3000
47950269 tourist H Jan. 4, 2019, 11:39 p.m. OK GNU C++14 TESTS 114 109 27648000 3000
51468050 jslijin H March 19, 2019, 3:49 a.m. OK GNU C++14 TESTS 114 109 29593600 3000
48084694 cz_xuyixuan H Jan. 8, 2019, 10:26 a.m. OK GNU C++14 TESTS 114 109 31539200 3000
49779737 BSBandme H Feb. 11, 2019, 5:02 p.m. OK GNU C++14 TESTS 114 124 37171200 3000
47950190 tourist H Jan. 4, 2019, 11:31 p.m. OK GNU C++14 TESTS 114 171 27648000 3000
47953983 ByamBa- H Jan. 5, 2019, 4:29 a.m. OK GNU C++17 TESTS 114 93 27852800 3000
55520111 Theo830 H June 13, 2019, 8:01 a.m. OK GNU C++17 TESTS 114 109 31948800 3000
49613494 zhangqingqi H Feb. 8, 2019, 4:11 a.m. OK GNU C++17 TESTS 114 109 41164800 3000
48420541 kczno1 H Jan. 15, 2019, 12:39 p.m. OK GNU C++17 TESTS 114 171 29388800 3000
48420209 kczno1 H Jan. 15, 2019, 12:32 p.m. OK GNU C++17 TESTS 114 171 29388800 3000
47937759 V--o_o--V H Jan. 4, 2019, 4:54 p.m. OK GNU C++17 TESTS 114 1637 32665600 3000
63882069 Xellos H Oct. 30, 2019, 9:35 p.m. OK GNU C++17 TESTS 114 2589 5222400 3000
63882022 Xellos H Oct. 30, 2019, 9:33 p.m. OK GNU C++17 TESTS 114 2636 5222400 3000
63882015 Xellos H Oct. 30, 2019, 9:33 p.m. OK GNU C++17 TESTS 114 2651 30208000 3000
63881204 Xellos H Oct. 30, 2019, 9:04 p.m. OK GNU C++17 TESTS 114 2713 37888000 3000
54363833 T_Nady H May 18, 2019, 11:33 p.m. OK Java 8 TESTS 114 670 7884800 3000
47944271 Petr H Jan. 4, 2019, 6:49 p.m. OK Java 8 TESTS 114 701 8908800 3000
47945147 Lewin H Jan. 4, 2019, 7:05 p.m. OK Java 8 TESTS 114 6192 2355200 3000

remove filters

Back to search problems