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.
Problems
B"Let's denote the function f(s) that takes a string s consisting of lowercase Latin letters and dots, and returns a string consisting of lowercase Latin letters as follows: You are given two strings s and t . You have to delete the minimum possible number of characters from s so that f(s) = t (and the function does not crash). Note that you aren't allowed to insert new characters into s or reorder the existing ones. The input consists of two lines: the first one contains s -- a string consisting of lowercase Latin letters and dots, the second one contains t -- a string consisting of lowercase Latin letters ( 1 <= |t| <= |s| <= 10000 ). Additional constraint on the input: it is possible to remove some number of characters from s so that f(s) = t . Print one integer -- the minimum possible number of characters you have to delete from s so f(s) does not crash and returns t as the result of the function. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
83485488 |
vinhntndu |
G |
June 11, 2020, 10:48 p.m. |
OK |
D |
TESTS |
127 |
405 |
4198400 |
|
|
83523626 |
dfcmd |
G |
June 12, 2020, 11:06 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
374 |
16896000 |
|
|
83464438 |
Alpha_Q |
G |
June 11, 2020, 4:54 p.m. |
OK |
GNU C++11 |
TESTS |
127 |
561 |
400998400 |
|
|
83548481 |
DD_BOND |
G |
June 12, 2020, 4:10 p.m. |
OK |
GNU C++11 |
TESTS |
127 |
592 |
401612800 |
|
|
83511265 |
EMEJ |
G |
June 12, 2020, 8:18 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
607 |
200601600 |
|
|
83511138 |
EMEJ |
G |
June 12, 2020, 8:16 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
623 |
200601600 |
|
|
83511053 |
Frame233 |
G |
June 12, 2020, 8:15 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
639 |
401305600 |
|
|
83509979 |
froggyzhang |
G |
June 12, 2020, 7:59 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
670 |
401203200 |
|
|
83467147 |
knandy |
G |
June 11, 2020, 5:15 p.m. |
OK |
GNU C++11 |
TESTS |
127 |
701 |
401305600 |
|
|
83572034 |
142 |
G |
June 13, 2020, 2:36 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
717 |
401305600 |
|
|
83521099 |
daifucong |
G |
June 12, 2020, 10:33 a.m. |
OK |
GNU C++11 |
TESTS |
127 |
748 |
401612800 |
|
|
83556948 |
xb0nS |
G |
June 12, 2020, 6:56 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
358 |
409600 |
|
|
83556734 |
xb0nS |
G |
June 12, 2020, 6:52 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
514 |
401510400 |
|
|
83478234 |
MarcosK |
G |
June 11, 2020, 7:37 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
561 |
614400 |
|
|
83444943 |
I_love_Tanya_Romanova |
G |
June 11, 2020, 4:06 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
576 |
405401600 |
|
|
83478342 |
MarcosK |
G |
June 11, 2020, 7:39 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
592 |
307200 |
|
|
83531405 |
EntityIT |
G |
June 12, 2020, 12:45 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
623 |
1945600 |
|
|
83481763 |
illuminate |
G |
June 11, 2020, 8:51 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
623 |
401305600 |
|
|
83481705 |
illuminate |
G |
June 11, 2020, 8:49 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
623 |
401510400 |
|
|
83573328 |
S_Aditya |
G |
June 13, 2020, 3:14 a.m. |
OK |
GNU C++14 |
TESTS |
127 |
638 |
401408000 |
|
|
83481732 |
illuminate |
G |
June 11, 2020, 8:50 p.m. |
OK |
GNU C++14 |
TESTS |
127 |
639 |
401305600 |
|
|
83572480 |
wasa855 |
G |
June 13, 2020, 2:49 a.m. |
OK |
GNU C++17 |
TESTS |
127 |
421 |
401510400 |
|
|
83549172 |
VEGAnn |
G |
June 12, 2020, 5:04 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
499 |
204800000 |
|
|
83478870 |
Arg_007 |
G |
June 11, 2020, 7:49 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
499 |
400998400 |
|
|
83485068 |
8-_-8 |
G |
June 11, 2020, 10:32 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
530 |
401203200 |
|
|
83448294 |
hackVerly |
G |
June 11, 2020, 4:13 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
545 |
201625600 |
|
|
83506835 |
badcw |
G |
June 12, 2020, 7:15 a.m. |
OK |
GNU C++17 |
TESTS |
127 |
560 |
202752000 |
|
|
83506756 |
badcw |
G |
June 12, 2020, 7:14 a.m. |
OK |
GNU C++17 |
TESTS |
127 |
639 |
405196800 |
|
|
83451253 |
penguinman |
G |
June 11, 2020, 4:19 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
670 |
402022400 |
|
|
83567689 |
Dcastillo41 |
G |
June 12, 2020, 11:20 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
670 |
402432000 |
|
|
83444271 |
Anachor |
G |
June 11, 2020, 4:04 p.m. |
OK |
GNU C++17 |
TESTS |
127 |
701 |
401510400 |
|
|
83479750 |
wwdd |
G |
June 11, 2020, 8:06 p.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
374 |
30617600 |
|
|
83565925 |
_oscar_S21 |
G |
June 12, 2020, 10:06 p.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
436 |
307200 |
|
|
83541605 |
timf1089 |
G |
June 12, 2020, 2:50 p.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
499 |
400998400 |
|
|
83494857 |
Kuroni |
G |
June 12, 2020, 3:54 a.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
561 |
307200 |
|
|
83491954 |
Ernestico |
G |
June 12, 2020, 2:50 a.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
561 |
201420800 |
|
|
83468544 |
neal |
G |
June 11, 2020, 5:28 p.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
577 |
201011200 |
|
|
83490226 |
AlexFetisov |
G |
June 12, 2020, 2:02 a.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
577 |
402022400 |
|
|
83493704 |
WZYYN |
G |
June 12, 2020, 3:26 a.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
592 |
401203200 |
|
|
83487514 |
Marckess |
G |
June 12, 2020, 12:24 a.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
592 |
401305600 |
|
|
83536595 |
DeadPillow |
G |
June 12, 2020, 1:52 p.m. |
OK |
GNU C++17 (64) |
TESTS |
127 |
607 |
402227200 |
|
|
83462138 |
uwi |
G |
June 11, 2020, 4:41 p.m. |
OK |
Java 11 |
TESTS |
127 |
1466 |
0 |
|
|
83571308 |
Oopsimbad |
G |
June 13, 2020, 2:12 a.m. |
OK |
Java 11 |
TESTS |
127 |
1606 |
479846400 |
|
|
83444384 |
SecondThread |
G |
June 11, 2020, 4:05 p.m. |
OK |
Java 8 |
TESTS |
127 |
1091 |
472780800 |
|
|
83572471 |
142 |
G |
June 13, 2020, 2:49 a.m. |
OK |
Java 8 |
TESTS |
127 |
1762 |
472883200 |
|
|
83559781 |
BpeMeHHa91_TryDHocTb |
G |
June 12, 2020, 7:42 p.m. |
OK |
MS C++ 2017 |
TESTS |
127 |
841 |
401612800 |
|
|
83524527 |
sansen |
G |
June 12, 2020, 11:17 a.m. |
OK |
Rust |
TESTS |
127 |
436 |
307200 |
|
|
83505190 |
sansen |
G |
June 12, 2020, 6:54 a.m. |
OK |
Rust |
TESTS |
127 |
514 |
150528000 |
|
|
83504782 |
sansen |
G |
June 12, 2020, 6:48 a.m. |
OK |
Rust |
TESTS |
127 |
607 |
201113600 |
|
|
remove filters
Back to search problems