Codeforces Round 423 (Div. 1, rated, based on VK Cup Finals)

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
827 Codeforces Round 423 (Div. 1, rated, based on VK Cup Finals) FINISHED False 7200 276614123 July 11, 2017, 4:45 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1783 ) C DNA Evolution PROGRAMMING data structures strings 2200

Everyone knows that DNA strands consist of nucleotides. There are four types of nucleotides: " A ", " T ", " G ", " C ". A DNA strand is a sequence of nucleotides. Scientists decided to track evolution of a rare species, which DNA strand was string s initially. Evolution of the species is described as a sequence of changes in the DNA. Every change is a change of some nucleotide, for example, the following change can happen in DNA strand " AAGC ": the second nucleotide can change to " T " so that the resulting DNA strand is " ATGC ". Scientists know that some segments of the DNA strand can be affected by some unknown infections. They can represent an infection as a sequence of nucleotides. Scientists are interested if there are any changes caused by some infections. Thus they sometimes want to know the value of impact of some infection to some segment of the DNA. This value is computed as follows: Let the infection be represented as a string e , and let scientists be interested in DNA strand segment starting from position l to position r , inclusive. Prefix of the string eee ... (i.e. the string that consists of infinitely many repeats of string e ) is written under the string s from position l to position r , inclusive. The value of impact is the number of positions where letter of string s coincided with the letter written under it. Being a developer, Innokenty is interested in bioinformatics also, so the scientists asked him for help. Innokenty is busy preparing VK Cup, so he decided to delegate the problem to the competitors. Help the scientists! The first line contains the string s ( 1 ≤ | s | ≤ 10 5 ) that describes the initial DNA strand. It consists only of capital English letters " A ", " T ", " G " and " C ". The next line contains single integer q ( 1 ≤ q ≤ 10 5 ) — the number of events. After that, q lines follow, each describes one event. Each of the lines has one of two formats: 1 x c , where x is an integer ( 1 ≤ x ≤ | s | ), and c is a lette

Tutorials

Codeforces Round #423 Analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59548759 magdy.hasan C Aug. 27, 2019, 12:58 a.m. OK Clang++17 Diagnostics TESTS 34 997 158617600 2200
30218713 toida12chu C Sept. 9, 2017, 6:27 a.m. OK FPC TESTS 34 436 168960000 2200
29934378 mwtonepiece C Aug. 31, 2017, 3:55 a.m. OK FPC TESTS 34 436 198348800 2200
29934302 dinhquyduc13021 C Aug. 31, 2017, 3:47 a.m. OK FPC TESTS 34 451 198348800 2200
29934703 huw C Aug. 31, 2017, 4:27 a.m. OK FPC TESTS 34 545 243097600 2200
28750020 jkxjkx1031 C July 21, 2017, 12:38 p.m. OK GNU C TESTS 34 217 34099200 2200
28448822 tjandra C July 11, 2017, 6:32 p.m. OK GNU C TESTS 34 218 217497600 2200
28442869 1919810 C July 11, 2017, 5:50 p.m. OK GNU C++ TESTS 34 139 90419200 2200
40980555 ReaLNero1 C July 30, 2018, 5:34 p.m. OK GNU C++ TESTS 34 140 88268800 2200
28443534 chihiro C July 11, 2017, 5:54 p.m. OK GNU C++ TESTS 34 155 196505600 2200
28457899 Nijigasaki_MaedaKaori C July 12, 2017, 2:04 a.m. OK GNU C++ TESTS 34 171 18329600 2200
28575237 kblack C July 15, 2017, 2:05 p.m. OK GNU C++ TESTS 34 186 98508800 2200
29537301 KrK C Aug. 17, 2017, 9:10 p.m. OK GNU C++ TESTS 34 187 16486400 2200
28984401 xiejun C July 30, 2017, 6:55 a.m. OK GNU C++ TESTS 34 187 178790400 2200
28450723 XingGeRuCi C July 11, 2017, 6:44 p.m. OK GNU C++ TESTS 34 187 195993600 2200
32185135 peehs_moorhsum C Nov. 10, 2017, 3:47 a.m. OK GNU C++ TESTS 34 202 17715200 2200
28448760 Rydberg C July 11, 2017, 6:32 p.m. OK GNU C++ TESTS 34 202 18329600 2200
31172432 00001 C Oct. 9, 2017, 4:11 p.m. OK GNU C++11 TESTS 34 140 22220800 2200
54909108 ErkkiErkko C June 1, 2019, 10:13 a.m. OK GNU C++11 TESTS 34 156 176844800 2200
28552628 stefanzzz C July 14, 2017, 3:59 p.m. OK GNU C++11 TESTS 34 171 8089600 2200
28965038 sxy_cnyali C July 29, 2017, 3:36 a.m. OK GNU C++11 TESTS 34 171 18841600 2200
41580412 cuizhuyefei C Aug. 14, 2018, 7:46 a.m. OK GNU C++11 TESTS 34 171 194355200 2200
28461658 supasaya C July 12, 2017, 5:01 a.m. OK GNU C++11 TESTS 34 186 18432000 2200
53891759 Panole233 C May 9, 2019, 1:09 a.m. OK GNU C++11 TESTS 34 186 194150400 2200
28442992 mhss C July 11, 2017, 5:51 p.m. OK GNU C++11 TESTS 34 187 18329600 2200
28442439 knightL C July 11, 2017, 5:47 p.m. OK GNU C++11 TESTS 34 187 18329600 2200
28441275 Tinsane C July 11, 2017, 5:39 p.m. OK GNU C++11 TESTS 34 187 21811200 2200
54792655 vjudge5 C May 29, 2019, 7:54 a.m. OK GNU C++14 TESTS 34 171 16486400 2200
30287697 flukehn C Sept. 12, 2017, 1:37 p.m. OK GNU C++14 TESTS 34 187 16896000 2200
28444641 biGinNer C July 11, 2017, 6:02 p.m. OK GNU C++14 TESTS 34 187 18329600 2200
28462735 MikeZ C July 12, 2017, 5:46 a.m. OK GNU C++14 TESTS 34 187 18432000 2200
28484912 spencer C July 12, 2017, 11:55 p.m. OK GNU C++14 TESTS 34 187 18841600 2200
28449916 simonlindholm C July 11, 2017, 6:40 p.m. OK GNU C++14 TESTS 34 202 18432000 2200
28444647 snuke C July 11, 2017, 6:02 p.m. OK GNU C++14 TESTS 34 202 18534400 2200
28560194 gs15120 C July 15, 2017, 1:40 a.m. OK GNU C++14 TESTS 34 202 18739200 2200
28479288 metatron C July 12, 2017, 4:31 p.m. OK GNU C++14 TESTS 34 202 18739200 2200
28449935 hey_boris C July 11, 2017, 6:40 p.m. OK GNU C++14 TESTS 34 202 18739200 2200
54793155 SheepRanger C May 29, 2019, 8:21 a.m. OK GNU C++17 TESTS 34 171 16486400 2200
50813737 Elegia C March 5, 2019, 10:24 a.m. OK GNU C++17 TESTS 34 187 17920000 2200
54096097 jkchen C May 14, 2019, 1:07 p.m. OK GNU C++17 TESTS 34 187 19353600 2200
56504802 Als123 C July 4, 2019, 7:59 a.m. OK GNU C++17 TESTS 34 218 194150400 2200

remove filters

Back to search problems