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 |
---|---|---|---|---|---|---|
1721 | Educational Codeforces Round 134 (Rated for Div. 2) | FINISHED | False | 7200 | 75569063 | Aug. 27, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2054 ) | E | Prefix Function Queries | PROGRAMMING | bitmasks brute force data structures hashing string suffix structures strings trees |
B"You are given a string s , consisting of lowercase Latin letters. You are asked q queries about it: given another string t , consisting of lowercase Latin letters, perform the following steps: The prefix function of a string a is a sequence p_1, p_2, ... , p_{|a|} , where p_i is the maximum value of k such that k < i and a[1..k]=a[i-k+1..i] ( a[l..r] denotes a contiguous substring of a string a from a position l to a position r , inclusive). In other words, it's the longest proper prefix of the string a[1..i] that is equal to its suffix of the same length. The first line contains a non-empty string s ( 1 <= |s| <= 10^6 ), consisting of lowercase Latin letters. The second line contains a single integer q ( 1 <= q <= 10^5 ) -- the number of queries. Each of the next q lines contains a query: a non-empty string t ( 1 <= |t| <= 10 ), consisting of lowercase Latin letters. For each query, print the values of the prefix function of a string s+t on positions |s|+1, |s|+2, ... , |s|+|t| . "... |
106416 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
169902317 | Tdyx | E | Aug. 27, 2022, 5:52 p.m. | OK | C# 8 | TESTS | 38 | 468 | 129945600 | ||
169925476 | chro4896 | E | Aug. 28, 2022, 1:48 a.m. | OK | GNU C11 | TESTS | 39 | 794 | 5017600 | ||
169928062 | Aitejiu | E | Aug. 28, 2022, 2:41 a.m. | OK | GNU C++14 | TESTS | 39 | 202 | 20070400 | ||
169898906 | expecting | E | Aug. 27, 2022, 5:22 p.m. | OK | GNU C++14 | TESTS | 38 | 217 | 11059200 | ||
169925169 | Myaljk | E | Aug. 28, 2022, 1:42 a.m. | OK | GNU C++14 | TESTS | 39 | 217 | 36044800 | ||
169929703 | juruo_c | E | Aug. 28, 2022, 3:11 a.m. | OK | GNU C++14 | TESTS | 39 | 218 | 113254400 | ||
169894040 | Syf2020 | E | Aug. 27, 2022, 4:49 p.m. | OK | GNU C++14 | TESTS | 38 | 233 | 10035200 | ||
169927325 | expecting | E | Aug. 28, 2022, 2:26 a.m. | OK | GNU C++14 | TESTS | 39 | 233 | 11059200 | ||
169925327 | expecting | E | Aug. 28, 2022, 1:45 a.m. | OK | GNU C++14 | TESTS | 39 | 233 | 11059200 | ||
169891819 | doveking | E | Aug. 27, 2022, 4:39 p.m. | OK | GNU C++14 | TESTS | 38 | 233 | 118272000 | ||
169929324 | __TRY_ | E | Aug. 28, 2022, 3:04 a.m. | OK | GNU C++14 | TESTS | 39 | 249 | 5017600 | ||
169891530 | antguz | E | Aug. 27, 2022, 4:37 p.m. | OK | GNU C++14 | TESTS | 38 | 249 | 133324800 | ||
169900223 | Bobocan | E | Aug. 27, 2022, 5:33 p.m. | OK | GNU C++17 | TESTS | 38 | 77 | 5529600 | ||
169905258 | Bobocan | E | Aug. 27, 2022, 6:22 p.m. | OK | GNU C++17 | TESTS | 39 | 77 | 5529600 | ||
169911486 | bashkort | E | Aug. 27, 2022, 7:45 p.m. | OK | GNU C++17 | TESTS | 39 | 140 | 110796800 | ||
169931677 | Emotiona | E | Aug. 28, 2022, 3:53 a.m. | OK | GNU C++17 | TESTS | 39 | 186 | 42188800 | ||
169924431 | Chenfree | E | Aug. 28, 2022, 1:28 a.m. | OK | GNU C++17 | TESTS | 39 | 187 | 47206400 | ||
169894732 | Secqin | E | Aug. 27, 2022, 4:53 p.m. | OK | GNU C++17 | TESTS | 38 | 217 | 5017600 | ||
169894598 | Secqin | E | Aug. 27, 2022, 4:52 p.m. | OK | GNU C++17 | TESTS | 38 | 217 | 5017600 | ||
169939166 | mdsiaofficial | E | Aug. 28, 2022, 6:02 a.m. | OK | GNU C++17 | TESTS | 39 | 218 | 20070400 | ||
169926357 | UESTC_charming | E | Aug. 28, 2022, 2:06 a.m. | OK | GNU C++17 | TESTS | 39 | 233 | 12083200 | ||
169894478 | Secqin | E | Aug. 27, 2022, 4:51 p.m. | OK | GNU C++17 | TESTS | 38 | 248 | 5017600 | ||
169911315 | bashkort | E | Aug. 27, 2022, 7:43 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 93 | 110796800 | ||
169911495 | bashkort | E | Aug. 27, 2022, 7:46 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 108 | 110796800 | ||
169911419 | bashkort | E | Aug. 27, 2022, 7:44 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 109 | 110284800 | ||
169911430 | bashkort | E | Aug. 27, 2022, 7:45 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 139 | 110182400 | ||
169927976 | lincid | E | Aug. 28, 2022, 2:39 a.m. | OK | GNU C++17 (64) | TESTS | 39 | 155 | 10035200 | ||
169911445 | bashkort | E | Aug. 27, 2022, 7:45 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 155 | 110182400 | ||
169935612 | alif_cse_ju | E | Aug. 28, 2022, 5:11 a.m. | OK | GNU C++17 (64) | TESTS | 39 | 187 | 106291200 | ||
169908580 | bashkort | E | Aug. 27, 2022, 7:01 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 202 | 110284800 | ||
169908672 | bashkort | E | Aug. 27, 2022, 7:03 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 217 | 110284800 | ||
169908649 | bashkort | E | Aug. 27, 2022, 7:02 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 218 | 110284800 | ||
169937603 | Yelson | E | Aug. 28, 2022, 5:41 a.m. | OK | GNU C++20 (64) | TESTS | 39 | 93 | 6144000 | ||
169930713 | A_king | E | Aug. 28, 2022, 3:32 a.m. | OK | GNU C++20 (64) | TESTS | 39 | 93 | 11161600 | ||
169903287 | Kambar_Z | E | Aug. 27, 2022, 6:02 p.m. | OK | GNU C++20 (64) | TESTS | 38 | 93 | 11161600 | ||
169907213 | follow_diana_please | E | Aug. 27, 2022, 6:43 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 93 | 18124800 | ||
169938976 | vipjml | E | Aug. 28, 2022, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 39 | 108 | 6144000 | ||
169915936 | Yelson | E | Aug. 27, 2022, 9:07 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 108 | 10137600 | ||
169908924 | follow_diana_please | E | Aug. 27, 2022, 7:06 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 108 | 14131200 | ||
169914080 | Nea1 | E | Aug. 27, 2022, 8:30 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 108 | 18124800 | ||
169907327 | follow_diana_please | E | Aug. 27, 2022, 6:45 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 108 | 18124800 | ||
169915774 | Yelson | E | Aug. 27, 2022, 9:04 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 109 | 10137600 | ||
169904077 | dzhi | E | Aug. 27, 2022, 6:10 p.m. | OK | Java 11 | TESTS | 38 | 343 | 14848000 | ||
169903844 | dzhi | E | Aug. 27, 2022, 6:08 p.m. | OK | Java 11 | TESTS | 38 | 389 | 16896000 | ||
169905063 | dzhi | E | Aug. 27, 2022, 6:20 p.m. | OK | Java 11 | TESTS | 38 | 390 | 16998400 | ||
169905737 | dzhi | E | Aug. 27, 2022, 6:27 p.m. | OK | Java 11 | TESTS | 39 | 405 | 15360000 | ||
169887949 | AndreySiunov | E | Aug. 27, 2022, 4:30 p.m. | OK | Java 11 | TESTS | 38 | 1419 | 248524800 | ||
169932465 | profchi | E | Aug. 28, 2022, 4:10 a.m. | OK | Java 11 | TESTS | 39 | 1965 | 36454400 | ||
169899807 | Dukkha | E | Aug. 27, 2022, 5:30 p.m. | OK | Java 17 | TESTS | 38 | 530 | 130969600 | ||
169895570 | pva701 | E | Aug. 27, 2022, 4:58 p.m. | OK | Java 17 | TESTS | 38 | 904 | 132403200 | ||
169899259 | Dukkha | E | Aug. 27, 2022, 5:25 p.m. | OK | Java 17 | TESTS | 38 | 997 | 250777600 | ||
169893397 | Dukkha | E | Aug. 27, 2022, 4:46 p.m. | OK | Java 17 | TESTS | 38 | 1450 | 106393600 | ||
169889913 | AndreySiunov | E | Aug. 27, 2022, 4:33 p.m. | OK | Java 17 | TESTS | 38 | 1450 | 251187200 | ||
169892979 | freehandle | E | Aug. 27, 2022, 4:44 p.m. | OK | Java 17 | TESTS | 38 | 1762 | 156160000 | ||
169893227 | Dukkha | E | Aug. 27, 2022, 4:45 p.m. | OK | Java 17 | TESTS | 38 | 1887 | 100761600 | ||
169899568 | megaspazz | E | Aug. 27, 2022, 5:28 p.m. | OK | Java 8 | TESTS | 38 | 374 | 222822400 | ||
169900042 | megaspazz | E | Aug. 27, 2022, 5:32 p.m. | OK | Java 8 | TESTS | 38 | 404 | 222822400 | ||
169898918 | megaspazz | E | Aug. 27, 2022, 5:22 p.m. | OK | Java 8 | TESTS | 38 | 421 | 222822400 | ||
169899910 | megaspazz | E | Aug. 27, 2022, 5:30 p.m. | OK | Java 8 | TESTS | 38 | 452 | 222822400 | ||
169899938 | megaspazz | E | Aug. 27, 2022, 5:31 p.m. | OK | Java 8 | TESTS | 38 | 467 | 222822400 | ||
169888306 | TheSawan | E | Aug. 27, 2022, 4:31 p.m. | OK | Java 8 | TESTS | 38 | 763 | 130560000 | ||
169889650 | AndreySiunov | E | Aug. 27, 2022, 4:33 p.m. | OK | Java 8 | TESTS | 38 | 1372 | 157900800 | ||
169887703 | AndreySiunov | E | Aug. 27, 2022, 4:30 p.m. | OK | Java 8 | TESTS | 38 | 1404 | 250060800 | ||
169908382 | zloyrobot | E | Aug. 27, 2022, 6:59 p.m. | OK | Java 8 | TESTS | 39 | 1544 | 258662400 | ||
169914108 | hxu10 | E | Aug. 27, 2022, 8:31 p.m. | OK | PyPy 2 | TESTS | 39 | 1700 | 164454400 | ||
169914126 | hxu10 | E | Aug. 27, 2022, 8:31 p.m. | OK | PyPy 3 | TESTS | 39 | 1747 | 180224000 | ||
169889434 | USYDLDH | E | Aug. 27, 2022, 4:33 p.m. | OK | PyPy 3-64 | TESTS | 38 | 1201 | 168550400 | ||
169921156 | magnus.hegdahl | E | Aug. 27, 2022, 11:36 p.m. | OK | Rust 2021 | TESTS | 39 | 109 | 52019200 | ||
169921960 | magnus.hegdahl | E | Aug. 28, 2022, 12:06 a.m. | OK | Rust 2021 | TESTS | 39 | 109 | 137113600 | ||
169922086 | magnus.hegdahl | E | Aug. 28, 2022, 12:11 a.m. | OK | Rust 2021 | TESTS | 39 | 139 | 136089600 | ||
169919489 | magnus.hegdahl | E | Aug. 27, 2022, 10:40 p.m. | OK | Rust 2021 | TESTS | 39 | 187 | 139776000 | ||
169919238 | magnus.hegdahl | E | Aug. 27, 2022, 10:32 p.m. | OK | Rust 2021 | TESTS | 39 | 280 | 128204800 | ||
169887516 | LittleFall | E | Aug. 27, 2022, 4:30 p.m. | OK | Rust 2021 | TESTS | 38 | 296 | 151449600 | ||
169917028 | magnus.hegdahl | E | Aug. 27, 2022, 9:32 p.m. | OK | Rust 2021 | TESTS | 39 | 374 | 152166400 | ||
169917010 | magnus.hegdahl | E | Aug. 27, 2022, 9:32 p.m. | OK | Rust 2021 | TESTS | 39 | 374 | 152166400 | ||
169917262 | magnus.hegdahl | E | Aug. 27, 2022, 9:37 p.m. | OK | Rust 2021 | TESTS | 39 | 389 | 152166400 | ||
169918132 | magnus.hegdahl | E | Aug. 27, 2022, 9:59 p.m. | OK | Rust 2021 | TESTS | 39 | 420 | 152166400 |
Back to search problems