Codeforces Round 807 (Div. 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
1705 Codeforces Round 807 (Div. 2) FINISHED False 8100 79374263 July 15, 2022, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13554 ) C Mark and His Unfinished Essay PROGRAMMING brute force implementation

B"One night, Mark realized that there is an essay due tomorrow. He hasn't written anything yet, so Mark decided to randomly copy-paste substrings from the prompt to make the essay. More formally, the prompt is a string s of initial length n . Mark will perform the copy-pasting operation c times. Each operation is described by two integers l and r , which means that Mark will append letters s_l s_{l+1} ldots s_r to the end of string s . Note that the length of s increases after this operation. Of course, Mark needs to be able to see what has been written. After copying, Mark will ask q queries: given an integer k , determine the k -th letter of the final string s . The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The first line of each test case contains three integers n , c , and q ( 1 <= q n <= q 2 cdot 10^5 , 1 <= q c <= q 40 , and 1 <= q q <= q 10^4 ) -- the length of the initial string s , the number of copy-pasting operations, and the number of queries, respectively. The second line of each test case contains a single string s of length n . It is guaranteed that s only contains lowercase English letters. The following c lines describe the copy-pasting operation. Each line contains two integers l and r ( 1 <= q l <= q r <= q 10^{18} ). It is also guaranteed that r does not exceed the current length of s . The last q lines of each test case describe the queries. Each line contains a single integer k ( 1 <= q k <= q 10^{18} ). It is also guaranteed that k does not exceed the final length of s . It is guaranteed that the sum of n and q across all test cases does not exceed 2 cdot 10^5 and 10^4 , respectively. For each query, print the k -th letter of the final string s . In the first test case, the copy-p"...

Tutorials

Codeforces Round #807 (Div 2.) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
164391206 1533050560 C July 16, 2022, 3:53 a.m. OK Clang++17 Diagnostics TESTS 10 420 204800
164383267 xiao_ai C July 16, 2022, 2:14 a.m. OK Clang++20 Diagnostics TESTS 10 61 204800
164391089 vjudge2 C July 16, 2022, 3:51 a.m. OK GNU C11 TESTS 10 77 204800
164399954 zstu21yuanchang C July 16, 2022, 5:43 a.m. OK GNU C++14 TESTS 10 15 204800
164386679 jianguolinyun C July 16, 2022, 3 a.m. OK GNU C++14 TESTS 10 15 204800
164374465 dengziyue C July 15, 2022, 11 p.m. OK GNU C++14 TESTS 10 15 204800
164353077 PrinceRajor C July 15, 2022, 5:45 p.m. OK GNU C++14 TESTS 10 15 512000
164352528 lkjhgfertyul C July 15, 2022, 5:40 p.m. OK GNU C++14 TESTS 10 15 512000
164373753 vrcoder045 C July 15, 2022, 10:40 p.m. OK GNU C++14 TESTS 10 15 512000
164342752 Kush_Bhatt C July 15, 2022, 4:25 p.m. OK GNU C++14 TESTS 10 15 512000
164398710 guptaaman200229 C July 16, 2022, 5:29 a.m. OK GNU C++14 TESTS 10 15 512000
164376315 zag C July 15, 2022, 11:58 p.m. OK GNU C++14 TESTS 10 15 5017600
164379682 yuhyuhy C July 16, 2022, 1:17 a.m. OK GNU C++14 TESTS 10 15 5017600
164392887 Xerxes_2002 C July 16, 2022, 4:17 a.m. OK GNU C++17 TESTS 10 15 204800
164389595 AnAnAnnnn C July 16, 2022, 3:32 a.m. OK GNU C++17 TESTS 10 15 204800
164389167 wqy2022 C July 16, 2022, 3:28 a.m. OK GNU C++17 TESTS 10 15 204800
164384004 usx21329 C July 16, 2022, 2:25 a.m. OK GNU C++17 TESTS 10 15 204800
164401366 1907195154 C July 16, 2022, 5:57 a.m. OK GNU C++17 TESTS 10 15 204800
164400377 Dracarys_2002 C July 16, 2022, 5:47 a.m. OK GNU C++17 TESTS 10 15 512000
164400092 .rem C July 16, 2022, 5:44 a.m. OK GNU C++17 TESTS 10 15 512000
164399741 shiv_314 C July 16, 2022, 5:40 a.m. OK GNU C++17 TESTS 10 15 512000
164399450 U_F_O_000 C July 16, 2022, 5:37 a.m. OK GNU C++17 TESTS 10 15 512000
164400378 dosaseung C July 16, 2022, 5:47 a.m. OK GNU C++17 TESTS 10 15 512000
164343592 propane C July 15, 2022, 4:29 p.m. OK GNU C++17 (64) TESTS 10 15 204800
164367830 SandAuddy755 C July 15, 2022, 8:46 p.m. OK GNU C++17 (64) TESTS 10 15 512000
164397890 Muly C July 16, 2022, 5:21 a.m. OK GNU C++17 (64) TESTS 10 15 512000
164392655 Cyanine_1 C July 16, 2022, 4:13 a.m. OK GNU C++17 (64) TESTS 10 15 512000
164385522 Messywind C July 16, 2022, 2:46 a.m. OK GNU C++17 (64) TESTS 10 15 512000
164377221 RK_little C July 16, 2022, 12:25 a.m. OK GNU C++17 (64) TESTS 10 15 512000
164370610 sreeshmaheshwar C July 15, 2022, 9:39 p.m. OK GNU C++17 (64) TESTS 10 15 512000
164366722 Evang C July 15, 2022, 8:28 p.m. OK GNU C++17 (64) TESTS 10 15 512000
164360445 novaa C July 15, 2022, 7:01 p.m. OK GNU C++17 (64) TESTS 10 15 512000
164360184 stevenkplus C July 15, 2022, 6:58 p.m. OK GNU C++17 (64) TESTS 10 15 512000
164344511 Aquanox C July 15, 2022, 4:34 p.m. OK GNU C++20 (64) TESTS 10 0 512000
164346194 mihneacazan C July 15, 2022, 4:45 p.m. OK GNU C++20 (64) TESTS 10 15 204800
164400428 Sarthak_324 C July 16, 2022, 5:48 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164400349 MParsa0684 C July 16, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164399525 kriplani_123 C July 16, 2022, 5:38 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164398296 Nusupovtemirlan C July 16, 2022, 5:25 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164398294 __Harsh__ C July 16, 2022, 5:25 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164398236 LLGM C July 16, 2022, 5:24 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164399444 tanzidi C July 16, 2022, 5:37 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164401709 sharmaharisam C July 16, 2022, 6 a.m. OK GNU C++20 (64) TESTS 10 15 512000
164369421 protogrammer C July 15, 2022, 9:14 p.m. OK Go TESTS 10 31 13004800
164351612 koqo C July 15, 2022, 5:31 p.m. OK Go TESTS 10 61 3481600
164399967 nbhakar C July 16, 2022, 5:43 a.m. OK Java 11 TESTS 10 171 0
164363566 garg_lucifer C July 15, 2022, 7:41 p.m. OK Java 11 TESTS 10 187 0
164355419 NO__OB C July 15, 2022, 6:08 p.m. OK Java 11 TESTS 10 187 0
164400205 Yash9890 C July 16, 2022, 5:45 a.m. OK Java 11 TESTS 10 202 0
164361105 prashantgaurav C July 15, 2022, 7:10 p.m. OK Java 11 TESTS 10 202 0
164353947 AWahba C July 15, 2022, 5:53 p.m. OK Java 11 TESTS 10 202 0
164349484 gaju321 C July 15, 2022, 5:11 p.m. OK Java 11 TESTS 10 202 0
164346131 x21svage C July 15, 2022, 4:44 p.m. OK Java 11 TESTS 10 202 0
164343504 SAMAD_ C July 15, 2022, 4:29 p.m. OK Java 11 TESTS 10 217 0
164354097 AWahba C July 15, 2022, 5:55 p.m. OK Java 11 TESTS 10 218 0
164341655 _ryan18_ C July 15, 2022, 4:21 p.m. OK Java 17 TESTS 10 202 307200
164341731 csdn-zhigeng C July 15, 2022, 4:21 p.m. OK Java 17 TESTS 10 265 409600
164343607 Ali04 C July 15, 2022, 4:29 p.m. OK Java 17 TESTS 10 280 409600
164347314 mahendarsinghrathod111 C July 15, 2022, 4:53 p.m. OK Java 8 TESTS 10 109 0
164393178 govindrajput C July 16, 2022, 4:21 a.m. OK Java 8 TESTS 10 124 0
164391510 priyaroy3370 C July 16, 2022, 3:57 a.m. OK Java 8 TESTS 10 124 0
164373797 tushar24 C July 15, 2022, 10:41 p.m. OK Java 8 TESTS 10 124 0
164351445 Mohamed308 C July 15, 2022, 5:29 p.m. OK Java 8 TESTS 10 124 0
164350165 themadknight45 C July 15, 2022, 5:17 p.m. OK Java 8 TESTS 10 124 0
164348717 vidwansAD C July 15, 2022, 5:04 p.m. OK Java 8 TESTS 10 124 0
164347996 Mohamed_A7med C July 15, 2022, 4:58 p.m. OK Java 8 TESTS 10 124 0
164364523 UniversalAdmin C July 15, 2022, 7:55 p.m. OK Java 8 TESTS 10 140 0
164344514 dev_14 C July 15, 2022, 4:34 p.m. OK Java 8 TESTS 10 156 0
164376543 qihnus C July 16, 2022, 12:05 a.m. OK Kotlin 1.6 TESTS 10 312 0
164389799 xiangyi1 C July 16, 2022, 3:35 a.m. OK MS C++ 2017 TESTS 10 31 1024000
164382707 Fish_L C July 16, 2022, 2:06 a.m. OK MS C++ 2017 TESTS 10 93 614400
164387392 pursuita C July 16, 2022, 3:08 a.m. OK MS C++ 2017 TESTS 10 93 5017600
164344828 hHap C July 15, 2022, 4:36 p.m. OK MS C++ 2017 TESTS 10 109 204800
164364114 TemporalBloom C July 15, 2022, 7:49 p.m. OK MS C++ 2017 TESTS 10 109 614400
164339414 cnnn C July 15, 2022, 3:49 p.m. OK MS C++ 2017 TESTS 10 124 204800
164350515 viswaviswa236 C July 15, 2022, 5:21 p.m. OK Node.js TESTS 10 295 6963200
164395046 aki79 C July 16, 2022, 4:46 a.m. OK PHP TESTS 10 77 0
164344276 1_2_3_4_5_9 C July 15, 2022, 4:33 p.m. OK PyPy 2 TESTS 10 186 12595200
164389466 otsuneko C July 16, 2022, 3:31 a.m. OK PyPy 3 TESTS 10 374 77312000
164342230 sushmanth.dampur8780 C July 15, 2022, 4:23 p.m. OK PyPy 3 TESTS 10 561 9625600
164394306 deepaklaksman C July 16, 2022, 4:36 a.m. OK PyPy 3 TESTS 10 701 10444800
164362750 josephwidjaja C July 15, 2022, 7:31 p.m. OK PyPy 3 TESTS 10 733 9932800
164396364 trojan1771 C July 16, 2022, 5:04 a.m. OK PyPy 3 TESTS 10 795 10240000
164343143 Leocosmos C July 15, 2022, 4:27 p.m. OK PyPy 3-64 TESTS 10 108 8908800
164353634 biglunchdude C July 15, 2022, 5:50 p.m. OK PyPy 3-64 TESTS 10 108 9011200
164349712 moyung C July 15, 2022, 5:13 p.m. OK PyPy 3-64 TESTS 10 124 8601600
164369894 radoan.sharkar.richi C July 15, 2022, 9:24 p.m. OK PyPy 3-64 TESTS 10 124 9113600
164372445 NKUCristiano C July 15, 2022, 10:21 p.m. OK PyPy 3-64 TESTS 10 139 8089600
164341483 Leocosmos C July 15, 2022, 4:21 p.m. OK PyPy 3-64 TESTS 10 139 8601600
164367552 iska_terminator C July 15, 2022, 8:41 p.m. OK PyPy 3-64 TESTS 10 139 8908800
164360668 ahmedsiad C July 15, 2022, 7:04 p.m. OK PyPy 3-64 TESTS 10 140 9420800
164363013 Adroit_001 C July 15, 2022, 7:35 p.m. OK PyPy 3-64 TESTS 10 140 15564800
164339402 wanglijie C July 15, 2022, 3:49 p.m. OK PyPy 3-64 TESTS 10 155 8806400
164397883 binaryEmperor008 C July 16, 2022, 5:21 a.m. OK Python 3 TESTS 10 234 921600
164391532 divyamkakkar24 C July 16, 2022, 3:57 a.m. OK Python 3 TESTS 10 264 716800
164376195 eugalt C July 15, 2022, 11:55 p.m. OK Python 3 TESTS 10 280 512000
164354477 eugalt C July 15, 2022, 5:59 p.m. OK Python 3 TESTS 10 295 512000
164352002 eugalt C July 15, 2022, 5:35 p.m. OK Python 3 TESTS 10 295 716800
164376026 eugalt C July 15, 2022, 11:49 p.m. OK Python 3 TESTS 10 311 512000
164354204 eugalt C July 15, 2022, 5:56 p.m. OK Python 3 TESTS 10 311 716800
164343196 DoggoKing C July 15, 2022, 4:27 p.m. OK Python 3 TESTS 10 312 716800
164375937 eugalt C July 15, 2022, 11:46 p.m. OK Python 3 TESTS 10 326 512000
164363143 r9RLx C July 15, 2022, 7:36 p.m. OK Python 3 TESTS 10 342 716800
164354595 bjin C July 15, 2022, 6 p.m. OK Rust 2021 TESTS 10 15 512000
164342849 kena0ki C July 15, 2022, 4:25 p.m. OK Rust 2021 TESTS 10 15 716800
164361859 bjin C July 15, 2022, 7:20 p.m. OK Rust 2021 TESTS 10 31 512000
164351365 kena0ki C July 15, 2022, 5:29 p.m. OK Rust 2021 TESTS 10 31 819200
164350656 kena0ki C July 15, 2022, 5:22 p.m. OK Rust 2021 TESTS 10 46 819200
164354363 bjin C July 15, 2022, 5:58 p.m. OK Rust 2021 TESTS 10 109 512000
164352834 NetravatPendsey C July 15, 2022, 5:43 p.m. OK Rust 2021 TESTS 10 124 1945600
164350193 NetravatPendsey C July 15, 2022, 5:17 p.m. OK Rust 2021 TESTS 10 124 1945600
164349269 NetravatPendsey C July 15, 2022, 5:09 p.m. OK Rust 2021 TESTS 10 124 1945600
164367983 songtianyi C July 15, 2022, 8:48 p.m. OK Rust 2021 TESTS 10 951 716800

remove filters

Back to search problems