Dasha Code Championship - Novosibirsk Finals Round (only for onsite-finalists)

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
1231 Dasha Code Championship - Novosibirsk Finals Round (only for onsite-finalists) FINISHED False 9000 162680099 Sept. 22, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 841 ) E Middle-Out PROGRAMMING constructive algorithms greedy strings 2000

B'The problem was inspired by Pied Piper story. After a challenge from Hooli 's compression competitor Nucleus, Richard pulled an all-nighter to invent a new approach to compression: middle-out. You are given two strings s and t of the same length n . Their characters are numbered from 1 to n from left to right (i.e. from the beginning to the end). In a single move you can do the following sequence of actions: Note, that the moves don 't change the length of the string s . You can apply a move only to the string s . For example, if s= "test" in one move you can obtain: You want to make the string s equal to the string t . What is the minimum number of moves you need? If it is impossible to transform s to t , print -1. The first line contains integer q ( 1 <= q <= 100 ) -- the number of independent test cases in the input. Each test case is given in three lines. The first line of a test case contains n ( 1 <= n <= 100 ) -- the length of the strings s and t . The second line contains s , the third line contains t . Both strings s and t have length n and contain only lowercase Latin letters. There are no constraints on the sum of n in the test (i.e. the input with q=100 and all n=100 is allowed). For every test print minimum possible number of moves, which are needed to transform s into t , or -1, if it is impossible to do. In the first example, the moves in one of the optimal answers are: '...

Tutorials

Dasha Code Championship Finals and Mirror Round 588 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61826283 ReaLNero1 E Oct. 4, 2019, 4:54 a.m. OK GNU C11 TESTS 17 15 0 2000
61223639 rainboy E Sept. 24, 2019, 2:35 p.m. OK GNU C11 TESTS 17 15 0 2000
65236702 Felix555 E Nov. 17, 2019, 7:30 a.m. OK GNU C11 TESTS 17 109 0 2000
62840576 PolyLoger E Oct. 18, 2019, 2:23 a.m. OK GNU C++11 TESTS 17 30 0 2000
61600545 chc_1234567890 E Oct. 1, 2019, 10:46 a.m. OK GNU C++11 TESTS 17 30 0 2000
61452049 xukuan E Sept. 29, 2019, 3:46 a.m. OK GNU C++11 TESTS 17 30 0 2000
65229368 luogu_bot2 E Nov. 17, 2019, 3:59 a.m. OK GNU C++11 TESTS 17 30 0 2000
63377027 MarcoMeijer E Oct. 25, 2019, 11:21 a.m. OK GNU C++11 TESTS 17 30 0 2000
62957710 medk E Oct. 19, 2019, 9:27 p.m. OK GNU C++11 TESTS 17 30 0 2000
66569349 WhiteCmile E Dec. 10, 2019, 2:51 a.m. OK GNU C++11 TESTS 17 31 0 2000
69429792 rajanparmar94 E Jan. 23, 2020, 4:57 p.m. OK GNU C++11 TESTS 17 31 0 2000
69325577 vjudge1 E Jan. 22, 2020, 3:04 p.m. OK GNU C++11 TESTS 17 31 0 2000
69084978 run_aroud E Jan. 19, 2020, 7:57 a.m. OK GNU C++11 TESTS 17 31 0 2000
63882357 adarsh7777 E Oct. 30, 2019, 9:46 p.m. OK GNU C++14 TESTS 17 15 0 2000
63117900 xyyf E Oct. 22, 2019, 10:05 a.m. OK GNU C++14 TESTS 17 15 0 2000
61314786 bensanhuan E Sept. 26, 2019, 10:40 a.m. OK GNU C++14 TESTS 17 15 0 2000
69877595 firiexp E Jan. 31, 2020, 4:54 a.m. OK GNU C++14 TESTS 17 15 0 2000
69177030 KasugaAyumu E Jan. 20, 2020, 8:30 a.m. OK GNU C++14 TESTS 17 15 0 2000
69176991 LordSatania666 E Jan. 20, 2020, 8:29 a.m. OK GNU C++14 TESTS 17 15 0 2000
62315099 avi892nash E Oct. 10, 2019, 3:02 p.m. OK GNU C++14 TESTS 17 15 102400 2000
61770565 yez-zain E Oct. 3, 2019, 10:02 a.m. OK GNU C++14 TESTS 17 15 102400 2000
61188128 icecuber E Sept. 24, 2019, 12:48 a.m. OK GNU C++14 TESTS 17 15 204800 2000
66279346 Nagrarok E Dec. 4, 2019, 4:34 p.m. OK GNU C++14 TESTS 17 30 0 2000
61881469 m.hasan01 E Oct. 5, 2019, 12:11 a.m. OK GNU C++17 TESTS 17 15 0 2000
61466193 HNO2 E Sept. 29, 2019, 10:31 a.m. OK GNU C++17 TESTS 17 15 0 2000
61273423 sebi110 E Sept. 25, 2019, 2:41 p.m. OK GNU C++17 TESTS 17 15 0 2000
61245949 mibig E Sept. 25, 2019, 12:06 a.m. OK GNU C++17 TESTS 17 15 0 2000
62366703 harshhx17 E Oct. 11, 2019, 2:03 p.m. OK GNU C++17 TESTS 17 15 0 2000
63736282 tim25871014 E Oct. 29, 2019, 3:25 p.m. OK GNU C++17 TESTS 17 15 0 2000
64108655 Deron5566 E Nov. 2, 2019, 5:43 p.m. OK GNU C++17 TESTS 17 15 0 2000
66311600 AK18 E Dec. 5, 2019, 11:38 a.m. OK GNU C++17 TESTS 17 15 102400 2000
64899266 AVL_trivial E Nov. 14, 2019, 6:05 p.m. OK GNU C++17 TESTS 17 15 102400 2000
62966601 gaoqiong E Oct. 20, 2019, 4:58 a.m. OK GNU C++17 TESTS 17 15 204800 2000
61588033 lamename E Oct. 1, 2019, 5:53 a.m. OK Java 8 TESTS 17 109 0 2000
61416255 chiragkaushik1 E Sept. 28, 2019, 10:21 a.m. OK Java 8 TESTS 17 109 0 2000
61585617 ijxjdjd E Oct. 1, 2019, 4:45 a.m. OK Java 8 TESTS 17 124 0 2000
61344655 Agnimandur E Sept. 27, 2019, 3:38 a.m. OK Java 8 TESTS 17 124 0 2000
61258762 Nesrin E Sept. 25, 2019, 11:01 a.m. OK Java 8 TESTS 17 124 0 2000
61223638 Dukkha E Sept. 24, 2019, 2:35 p.m. OK Java 8 TESTS 17 139 0 2000
61261080 yaoct E Sept. 25, 2019, 11:36 a.m. OK Java 8 TESTS 17 140 0 2000
61219302 godxpunk E Sept. 24, 2019, 1:32 p.m. OK Java 8 TESTS 17 140 0 2000
62055263 ivankevin E Oct. 7, 2019, 11:50 a.m. OK Java 8 TESTS 17 155 0 2000
61339759 vinaysaini97 E Sept. 26, 2019, 7:40 p.m. OK Java 8 TESTS 17 156 0 2000
62971479 THTGAN E Oct. 20, 2019, 7:04 a.m. OK MS C++ 2017 TESTS 17 31 0 2000
61194226 Timonnable E Sept. 24, 2019, 4:42 a.m. OK MS C++ 2017 TESTS 17 31 102400 2000
66482157 Svlad_Cjelli E Dec. 8, 2019, 3:50 a.m. OK Ocaml TESTS 17 31 0 2000
69874371 tycyd E Jan. 31, 2020, 3 a.m. OK PyPy 3 TESTS 17 170 2252800 2000
61581832 hohohaha E Oct. 1, 2019, 2:21 a.m. OK PyPy 3 TESTS 17 186 1843200 2000
61907905 coyorkdow E Oct. 5, 2019, 10:09 a.m. OK PyPy 3 TESTS 17 202 3379200 2000
61202081 johndecoder91 E Sept. 24, 2019, 8:11 a.m. OK PyPy 3 TESTS 17 218 3379200 2000
61181274 ecnerwala E Sept. 23, 2019, 7:54 p.m. OK PyPy 3 TESTS 17 233 3379200 2000
66973281 sruthi_1729 E Dec. 15, 2019, 1:51 p.m. OK Python 3 TESTS 17 421 716800 2000
61297286 franckmy E Sept. 26, 2019, 2:20 a.m. OK Python 3 TESTS 17 452 409600 2000
61398236 221 E Sept. 28, 2019, 3:46 a.m. OK Python 3 TESTS 17 873 0 2000
61953410 sansen E Oct. 6, 2019, 4:49 a.m. OK Rust TESTS 17 31 204800 2000

remove filters

Back to search problems