Educational Codeforces Round 51 (Rated for 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
1051 Educational Codeforces Round 51 (Rated for Div. 2) FINISHED False 7200 199984487 Sept. 20, 2018, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8501 ) A Vasya And Password PROGRAMMING greedy implementation strings 1200

B'Vasya came up with a password to register for EatForces -- a string s . The password in EatForces should be a string, consisting of lowercase and uppercase Latin letters and digits. But since EatForces takes care of the security of its users, user passwords must contain at least one digit, at least one uppercase Latin letter and at least one lowercase Latin letter. For example, the passwords "abaCABA12", "Z7q" and "3R24m" are valid, and the passwords "qwerty", "qwerty12345" and "Password" are not. A substring of string s is a string x = s_l s_{l + 1} ... s_{l + len - 1} (1 <= l <= |s|, 0 <= len <= |s| - l + 1) . len is the length of the substring. Note that the empty string is also considered a substring of s , it has the length 0 . Vasya 's password, however, may come too weak for the security settings of EatForces. He likes his password, so he wants to replace some its substring with another string of the same length in order to satisfy the above conditions. This operation should be performed exactly once, and the chosen string should have the minimal possible length. Note that the length of s should not change after the replacement of the substring, and the string itself should contain only lowercase and uppercase Latin letters and digits. The first line contains a single integer T ( 1 <= T <= 100 ) -- the number of testcases. Each of the next T lines contains the initial password s~(3 <= |s| <= 100) , consisting of lowercase and uppercase Latin letters and digits. Only T = 1 is allowed for hacks. For each testcase print a renewed password, which corresponds to given conditions. The length of the replaced substring is calculated as following: write down all the changed positions. If there are none, then the length is 0 . Otherwise the length is the difference between the first and the last changed position plus one. For example, the length of the changed substring between'...

Tutorials

Educational Codeforces Round 51 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49531510 smit.mangukiya A Feb. 6, 2019, 2:01 p.m. OK Clang++17 Diagnostics TESTS 19 46 0 1200
43145126 ruban A Sept. 20, 2018, 4:27 p.m. OK Delphi TESTS 19 31 64921600 1200
43790055 BattleCry A Oct. 4, 2018, 1:31 p.m. OK FPC TESTS 19 15 102400 1200
43441651 ZuZKho A Sept. 26, 2018, 9:25 a.m. OK FPC TESTS 19 15 102400 1200
43145184 nhuvinhpro123 A Sept. 20, 2018, 4:28 p.m. OK FPC TESTS 19 31 102400 1200
52576993 ece18023 A April 10, 2019, 4:54 p.m. OK GNU C11 TESTS 19 30 0 1200
52587036 chinmaicm A April 11, 2019, 1:21 a.m. OK GNU C11 TESTS 19 30 0 1200
52587447 bharathdk758 A April 11, 2019, 1:57 a.m. OK GNU C11 TESTS 19 30 0 1200
52587518 vandana04 A April 11, 2019, 2:03 a.m. OK GNU C11 TESTS 19 30 0 1200
52587768 naveenakota A April 11, 2019, 2:25 a.m. OK GNU C11 TESTS 19 30 0 1200
52589339 Tejeshna A April 11, 2019, 4:08 a.m. OK GNU C11 TESTS 19 30 0 1200
52589701 Hannahregi A April 11, 2019, 4:27 a.m. OK GNU C11 TESTS 19 30 0 1200
52590169 vineethd A April 11, 2019, 4:53 a.m. OK GNU C11 TESTS 19 30 0 1200
52609515 am.en.u4ece18117 A April 11, 2019, 3:23 p.m. OK GNU C11 TESTS 19 30 0 1200
58081648 abcd227 A July 31, 2019, 2:06 p.m. OK GNU C11 TESTS 19 30 0 1200
53825429 Toirov_Sadi A May 6, 2019, 3:45 p.m. OK GNU C++11 TESTS 19 15 0 1200
52673553 Scut82 A April 13, 2019, 8:34 a.m. OK GNU C++11 TESTS 19 15 0 1200
51958225 vjudge4 A March 29, 2019, 4:49 a.m. OK GNU C++11 TESTS 19 15 0 1200
49128846 Alisa_0228 A Jan. 29, 2019, 2:08 a.m. OK GNU C++11 TESTS 19 15 0 1200
49127485 ULIRE A Jan. 29, 2019, 12:58 a.m. OK GNU C++11 TESTS 19 15 0 1200
48523185 luogu_bot4 A Jan. 18, 2019, 7:37 a.m. OK GNU C++11 TESTS 19 15 0 1200
69033055 vjudge5 A Jan. 18, 2020, 8:31 a.m. OK GNU C++11 TESTS 19 15 0 1200
57146690 vjudge6 A July 16, 2019, 1:11 p.m. OK GNU C++11 TESTS 19 15 0 1200
55827648 h__h A June 20, 2019, 11:39 a.m. OK GNU C++11 TESTS 19 15 0 1200
54098137 codemaster10 A May 14, 2019, 2:12 p.m. OK GNU C++11 TESTS 19 15 0 1200
68401404 ElProfesor._. A Jan. 8, 2020, 1:18 p.m. OK GNU C++14 TESTS 19 15 0 1200
69664843 Robukhi A Jan. 28, 2020, 10:56 a.m. OK GNU C++14 TESTS 19 15 0 1200
68396127 Triple-H A Jan. 8, 2020, 11:08 a.m. OK GNU C++14 TESTS 19 15 0 1200
67679221 N0__0ne A Dec. 27, 2019, 5:14 a.m. OK GNU C++14 TESTS 19 15 0 1200
66133909 anshul.py A Dec. 1, 2019, 11:31 a.m. OK GNU C++14 TESTS 19 15 0 1200
63068581 toto6114 A Oct. 21, 2019, 11:41 a.m. OK GNU C++14 TESTS 19 15 0 1200
58054407 ankhbayar06 A July 31, 2019, 4:17 a.m. OK GNU C++14 TESTS 19 15 0 1200
57905502 Erad_Proc A July 28, 2019, 5:26 p.m. OK GNU C++14 TESTS 19 15 0 1200
56166994 once_twice A June 27, 2019, 2:42 p.m. OK GNU C++14 TESTS 19 15 0 1200
55838993 Vlaine A June 20, 2019, 4:54 p.m. OK GNU C++14 TESTS 19 15 0 1200
65616514 naranja011223 A Nov. 24, 2019, 3:59 a.m. OK GNU C++17 TESTS 19 15 0 1200
65798434 CaptainBeaver A Nov. 27, 2019, 6:14 a.m. OK GNU C++17 TESTS 19 15 0 1200
66148010 Shashank_R A Dec. 1, 2019, 5:32 p.m. OK GNU C++17 TESTS 19 15 0 1200
65267356 vilcheuski A Nov. 17, 2019, 5:47 p.m. OK GNU C++17 TESTS 19 15 0 1200
67656981 ForeverBrick A Dec. 26, 2019, 2:16 p.m. OK GNU C++17 TESTS 19 15 0 1200
67786787 FailBetterNextTime A Dec. 28, 2019, 1:04 p.m. OK GNU C++17 TESTS 19 15 0 1200
68039275 Anmol A Jan. 1, 2020, 1:33 p.m. OK GNU C++17 TESTS 19 15 0 1200
69053007 vikashr8 A Jan. 18, 2020, 1:24 p.m. OK GNU C++17 TESTS 19 15 0 1200
69294709 manovik18 A Jan. 22, 2020, 11:44 a.m. OK GNU C++17 TESTS 19 15 0 1200
69629968 dil_shad22 A Jan. 27, 2020, 4:55 p.m. OK GNU C++17 TESTS 19 15 0 1200
44976945 davidguandev A Oct. 28, 2018, 6:12 a.m. OK Go TESTS 19 31 0 1200
44358820 dhoni072 A Oct. 15, 2018, 1:40 p.m. OK Java 8 TESTS 19 108 0 1200
67581632 adzi A Dec. 25, 2019, 6:23 a.m. OK Java 8 TESTS 19 108 0 1200
48657453 Arsalan_ A Jan. 21, 2019, 3:47 a.m. OK Java 8 TESTS 19 108 0 1200
44360437 sooraj10 A Oct. 15, 2018, 2:21 p.m. OK Java 8 TESTS 19 108 0 1200
65561048 bluesky111 A Nov. 23, 2019, 2:54 a.m. OK Java 8 TESTS 19 109 0 1200
56454664 AnandOza A July 3, 2019, 2:45 a.m. OK Java 8 TESTS 19 109 0 1200
56005824 ragpatel8742 A June 24, 2019, 3:27 p.m. OK Java 8 TESTS 19 109 0 1200
54532494 Ikari_stream A May 23, 2019, 5:51 p.m. OK Java 8 TESTS 19 109 0 1200
49924544 Atomwolfie A Feb. 14, 2019, 9:18 p.m. OK Java 8 TESTS 19 109 0 1200
49920256 Kelp A Feb. 14, 2019, 6:27 p.m. OK Java 8 TESTS 19 109 0 1200
45648372 jedikni A Nov. 12, 2018, 9:23 p.m. OK Kotlin TESTS 19 124 0 1200
45235383 nordiccat A Nov. 3, 2018, 9 a.m. OK Kotlin TESTS 19 156 1126400 1200
55003885 og.kostya A June 3, 2019, 6:24 a.m. OK Mono C# TESTS 19 46 0 1200
43528776 tolmachev411 A Sept. 28, 2018, 12:39 p.m. OK Mono C# TESTS 19 46 0 1200
43538306 Azazelo A Sept. 28, 2018, 4:16 p.m. OK Mono C# TESTS 19 46 0 1200
43509980 chelogrek A Sept. 27, 2018, 10:16 p.m. OK Mono C# TESTS 19 46 102400 1200
43537395 danilprokat A Sept. 28, 2018, 3:55 p.m. OK Mono C# TESTS 19 61 3584000 1200
50541127 nemars A Feb. 26, 2019, 6:11 p.m. OK Mono C# TESTS 19 61 3686400 1200
43510270 chelogrek A Sept. 27, 2018, 10:33 p.m. OK Mono C# TESTS 19 62 0 1200
43528277 01Zen A Sept. 28, 2018, 12:25 p.m. OK Mono C# TESTS 19 62 0 1200
48559928 tamunsio A Jan. 19, 2019, 6:57 a.m. OK Mono C# TESTS 19 77 0 1200
43535030 vjudge3 A Sept. 28, 2018, 3:01 p.m. OK MS C++ TESTS 19 15 0 1200
51396790 vjudge3 A March 17, 2019, 5:03 a.m. OK MS C++ TESTS 19 15 0 1200
43644963 vjudge3 A Oct. 1, 2018, 1:21 p.m. OK MS C++ TESTS 19 15 0 1200
49127604 lxyzftjm A Jan. 29, 2019, 1:05 a.m. OK MS C++ TESTS 19 15 0 1200
48962750 vjudge5 A Jan. 26, 2019, 6:41 a.m. OK MS C++ TESTS 19 15 0 1200
48517599 vjudge4 A Jan. 18, 2019, 5:20 a.m. OK MS C++ TESTS 19 15 0 1200
49127499 kaguya_tsuki A Jan. 29, 2019, 12:59 a.m. OK MS C++ TESTS 19 30 0 1200
50866283 Whirligig A March 5, 2019, 8:38 p.m. OK MS C++ TESTS 19 30 0 1200
58930198 vjudge3 A Aug. 16, 2019, 11:23 p.m. OK MS C++ TESTS 19 30 0 1200
53767477 vjudge5 A May 5, 2019, 1:51 a.m. OK MS C++ TESTS 19 30 0 1200
59666852 Mad112233 A Aug. 29, 2019, 2:30 p.m. OK MS C++ 2017 TESTS 19 30 0 1200
58663086 vjudge2 A Aug. 12, 2019, 11:39 a.m. OK MS C++ 2017 TESTS 19 30 0 1200
62159663 VladKozin A Oct. 8, 2019, 5:50 p.m. OK MS C++ 2017 TESTS 19 31 0 1200
63183863 shio A Oct. 22, 2019, 4:35 p.m. OK MS C++ 2017 TESTS 19 31 0 1200
64453067 ashis041 A Nov. 7, 2019, 7:48 a.m. OK MS C++ 2017 TESTS 19 31 0 1200
66438306 khsustudent A Dec. 7, 2019, 7:04 a.m. OK MS C++ 2017 TESTS 19 31 0 1200
59103069 Peinot A Aug. 19, 2019, 4:52 p.m. OK MS C++ 2017 TESTS 19 31 0 1200
61438140 CtrlAlt A Sept. 28, 2019, 5:31 p.m. OK MS C++ 2017 TESTS 19 31 0 1200
60268946 MeganDorian A Sept. 8, 2019, 2:35 p.m. OK MS C++ 2017 TESTS 19 31 0 1200
59391610 116c A Aug. 24, 2019, 8:46 a.m. OK MS C++ 2017 TESTS 19 31 0 1200
43165892 huashiyiqike A Sept. 21, 2018, 5:01 a.m. OK Node.js TESTS 19 187 921600 1200
45097762 cube-R A Oct. 30, 2018, 12:34 p.m. OK PascalABC.NET TESTS 19 46 0 1200
43441137 Zhenyasonic A Sept. 26, 2018, 9:06 a.m. OK PascalABC.NET TESTS 19 46 102400 1200
43146843 Alexandr212 A Sept. 20, 2018, 4:37 p.m. OK PascalABC.NET TESTS 19 62 102400 1200
43440958 Unilaknij A Sept. 26, 2018, 9 a.m. OK PascalABC.NET TESTS 19 62 102400 1200
43441692 veta A Sept. 26, 2018, 9:26 a.m. OK PascalABC.NET TESTS 19 62 2867200 1200
51355688 mm944 A March 16, 2019, 4 a.m. OK PascalABC.NET TESTS 19 311 307200 1200
43170240 rsFalse A Sept. 21, 2018, 7:55 a.m. OK Perl TESTS 19 30 0 1200
43169581 rsFalse A Sept. 21, 2018, 7:28 a.m. OK Perl TESTS 19 31 0 1200
43258059 s_p A Sept. 22, 2018, 2:02 p.m. OK Perl TESTS 19 31 0 1200
43158073 mayakin A Sept. 20, 2018, 9:30 p.m. OK PHP TESTS 19 31 409600 1200
43639211 apoorv1999 A Oct. 1, 2018, 10:22 a.m. OK PyPy 2 TESTS 19 124 0 1200
54873484 kaif_7 A May 31, 2019, 10:36 a.m. OK PyPy 2 TESTS 19 124 0 1200
54451525 Mukundan314 A May 21, 2019, 1:45 p.m. OK PyPy 2 TESTS 19 124 0 1200
44721167 test616.cpp A Oct. 23, 2018, 5:13 a.m. OK PyPy 2 TESTS 19 124 0 1200
43151039 Ashlin A Sept. 20, 2018, 5:27 p.m. OK PyPy 2 TESTS 19 124 307200 1200
43155898 masonsbro A Sept. 20, 2018, 7:54 p.m. OK PyPy 2 TESTS 19 140 307200 1200
51756375 shubham0290 A March 23, 2019, 11:45 a.m. OK PyPy 3 TESTS 19 124 0 1200
47726031 shubhammitt A Dec. 30, 2018, 2:17 p.m. OK PyPy 3 TESTS 19 124 0 1200
46132129 kimcoder A Nov. 24, 2018, 2:16 a.m. OK PyPy 3 TESTS 19 124 0 1200
44945423 bergus A Oct. 27, 2018, 9:54 a.m. OK PyPy 3 TESTS 19 124 0 1200
44516916 tsukuyomi A Oct. 18, 2018, 6:34 p.m. OK PyPy 3 TESTS 19 124 0 1200
43271036 smnn A Sept. 22, 2018, 6:55 p.m. OK PyPy 3 TESTS 19 124 0 1200
54141131 Arhimason A May 14, 2019, 5:44 p.m. OK PyPy 3 TESTS 19 139 0 1200
46620386 ZakoylovIlya A Dec. 4, 2018, 5:37 p.m. OK PyPy 3 TESTS 19 139 0 1200
58712182 KirKhal A Aug. 13, 2019, 12:41 p.m. OK PyPy 3 TESTS 19 140 0 1200
55828012 Olerinskiy A June 20, 2019, 11:49 a.m. OK PyPy 3 TESTS 19 140 0 1200
44490873 raven_47 A Oct. 18, 2018, 2:25 p.m. OK Python 2 TESTS 19 156 0 1200
44043545 xiaohuihui A Oct. 9, 2018, 3:58 p.m. OK Python 2 TESTS 19 156 0 1200
44392266 tnowakow A Oct. 16, 2018, 9:15 a.m. OK Python 2 TESTS 19 156 307200 1200
43410326 noob77777 A Sept. 25, 2018, 1:14 p.m. OK Python 2 TESTS 19 170 0 1200
61093111 daniel.carlos A Sept. 22, 2019, 11:56 p.m. OK Python 2 TESTS 19 171 0 1200
44470137 mukeremali A Oct. 18, 2018, 5:49 a.m. OK Python 2 TESTS 19 171 0 1200
44040968 xiaohuihui A Oct. 9, 2018, 2:42 p.m. OK Python 2 TESTS 19 171 0 1200
43401486 tastembekov_anuar A Sept. 25, 2018, 8:59 a.m. OK Python 2 TESTS 19 171 0 1200
43341650 nealzane A Sept. 23, 2018, 6:01 p.m. OK Python 2 TESTS 19 171 0 1200
44042763 xiaohuihui A Oct. 9, 2018, 3:34 p.m. OK Python 2 TESTS 19 186 0 1200
47012441 cr0n A Dec. 14, 2018, 5:14 p.m. OK Python 3 TESTS 19 108 0 1200
43239230 jaaguptamme A Sept. 22, 2018, 9:17 a.m. OK Python 3 TESTS 19 108 0 1200
53538864 daotiennamhlvl A April 30, 2019, 5:06 a.m. OK Python 3 TESTS 19 108 307200 1200
66777069 GaMeR-X A Dec. 13, 2019, 10:30 a.m. OK Python 3 TESTS 19 109 0 1200
66471444 beethoven97 A Dec. 7, 2019, 6:33 p.m. OK Python 3 TESTS 19 109 0 1200
58339943 Incognito A Aug. 5, 2019, 12:52 p.m. OK Python 3 TESTS 19 109 0 1200
50599394 saku7 A Feb. 28, 2019, 11:59 a.m. OK Python 3 TESTS 19 109 0 1200
47278060 whatshisbucket A Dec. 19, 2018, 8:47 p.m. OK Python 3 TESTS 19 109 0 1200
45437426 Vasiliy_48 A Nov. 8, 2018, 8:51 a.m. OK Python 3 TESTS 19 109 0 1200
44972954 bergus A Oct. 28, 2018, 2:40 a.m. OK Python 3 TESTS 19 109 0 1200
43360213 kichi A Sept. 24, 2018, 8:50 a.m. OK Rust TESTS 19 15 307200 1200
43720223 grihabor A Oct. 3, 2018, 9:36 a.m. OK Rust TESTS 19 31 0 1200

remove filters

Back to search problems