Educational Codeforces Round 63 (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
1155 Educational Codeforces Round 63 (Rated for Div. 2) FINISHED False 7200 175879499 April 22, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15359 ) A Reverse a Substring PROGRAMMING implementation sortings strings 1000

B'You are given a string s consisting of n lowercase Latin letters. Let 's define a substring as a contiguous subsegment of a string. For example, "acab" is a substring of "abacaba" (it starts in position 3 and ends in position 6 ), but "aa" or "d" aren 't substrings of this string. So the substring of the string s from position l to position r is s[l; r] = s_l s_{l + 1} ... s_r . You have to choose exactly one of the substrings of the given string and reverse it (i. xe2 x80 x89e. make s[l; r] = s_r s_{r - 1} ... s_l ) to obtain a string that is less lexicographically. Note that it is not necessary to obtain the minimum possible string. If it is impossible to reverse some substring of the given string to obtain a string that is less, print "NO". Otherwise print "YES" and any suitable substring. String x is lexicographically less than string y , if either x is a prefix of y (and x ne y ), or there exists such i ( 1 <= i <= min(|x|, |y|) ), that x_i < y_i , and for any j ( 1 <= j < i ) x_j = y_j . Here |a| denotes the length of the string a . The lexicographic comparison of strings is implemented by operator < in modern programming languages xe2 x80 x8b xe2 x80 x8b. The first line of the input contains one integer n ( 2 <= n <= 3 cdot 10^5 ) -- the length of s . The second line of the input contains the string s of length n consisting only of lowercase Latin letters. If it is impossible to reverse some substring of the given string to obtain a string which is lexicographically less, print "NO". Otherwise print "YES" and two indices l and r ( 1 <= l < r <= n ) denoting the substring you have to reverse. If there are multiple answers, you can print any. In the first testcase the resulting string is "aacabba". '...

Tutorials

66687

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61391740 vjudge5 A Sept. 27, 2019, 10:02 p.m. OK Clang++17 Diagnostics TESTS 25 93 15462400 1000
53211364 Kuchh_Na A April 24, 2019, 5:43 a.m. OK Clang++17 Diagnostics TESTS 25 108 15462400 1000
53173905 Mcccree A April 23, 2019, 1:37 a.m. OK Clang++17 Diagnostics TESTS 25 108 15462400 1000
53164102 Denor A April 22, 2019, 5:16 p.m. OK Delphi TESTS 25 93 614400 1000
53152925 ruban A April 22, 2019, 3:59 p.m. OK Delphi TESTS 25 93 614400 1000
62853686 vjudge3 A Oct. 18, 2019, 8:25 a.m. OK GNU C11 TESTS 25 15 307200 1000
53162420 Monirul_Islam_110 A April 22, 2019, 4:48 p.m. OK GNU C11 TESTS 25 30 307200 1000
53150873 lifeform A April 22, 2019, 3:50 p.m. OK GNU C11 TESTS 25 30 307200 1000
61469851 DevJewel A Sept. 29, 2019, 11:53 a.m. OK GNU C11 TESTS 25 30 307200 1000
53176590 yingliu A April 23, 2019, 4:18 a.m. OK GNU C11 TESTS 25 30 307200 1000
53163744 Liakot_Ali A April 22, 2019, 5:09 p.m. OK GNU C11 TESTS 25 30 307200 1000
65673762 Dream.to A Nov. 24, 2019, 5:05 p.m. OK GNU C11 TESTS 25 30 307200 1000
54872963 ashk_21 A May 31, 2019, 10:18 a.m. OK GNU C11 TESTS 25 30 307200 1000
54551864 S_K_Sami A May 24, 2019, 9:32 a.m. OK GNU C11 TESTS 25 31 0 1000
68474814 romarioputra A Jan. 10, 2020, 4:50 a.m. OK GNU C11 TESTS 25 31 307200 1000
54648664 qq2585646908 A May 26, 2019, 3:24 a.m. OK GNU C++11 TESTS 25 15 102400 1000
53208654 Sodaine A April 24, 2019, 2:20 a.m. OK GNU C++11 TESTS 25 15 307200 1000
53301264 HueMaster A April 25, 2019, 8:54 p.m. OK GNU C++11 TESTS 25 15 307200 1000
53457099 Freetocode A April 28, 2019, 3:54 a.m. OK GNU C++11 TESTS 25 15 1024000 1000
56079106 fuk A June 26, 2019, 2:19 p.m. OK GNU C++11 TESTS 25 15 1024000 1000
56606973 bagpipe A July 6, 2019, 5:19 a.m. OK GNU C++11 TESTS 25 30 102400 1000
53171947 0codeGod0 A April 22, 2019, 10:40 p.m. OK GNU C++11 TESTS 25 30 102400 1000
53987232 lengyanze A May 11, 2019, 10:22 a.m. OK GNU C++11 TESTS 25 30 204800 1000
53583422 yjun A April 30, 2019, 4:56 p.m. OK GNU C++11 TESTS 25 30 307200 1000
53884123 tin1412 A May 8, 2019, 4:50 p.m. OK GNU C++11 TESTS 25 30 307200 1000
53207665 daniel071292 A April 24, 2019, 12:48 a.m. OK GNU C++14 TESTS 25 15 307200 1000
53323471 enaim A April 26, 2019, 2:09 p.m. OK GNU C++14 TESTS 25 15 307200 1000
54086898 tangbinjie A May 14, 2019, 8 a.m. OK GNU C++14 TESTS 25 15 307200 1000
58162375 alechuang98 A Aug. 2, 2019, 7:52 a.m. OK GNU C++14 TESTS 25 15 307200 1000
54455155 cr7legend A May 21, 2019, 3:26 p.m. OK GNU C++14 TESTS 25 15 614400 1000
59690868 mayank0802 A Aug. 30, 2019, 5:57 a.m. OK GNU C++14 TESTS 25 15 1024000 1000
61901143 dilute2 A Oct. 5, 2019, 8:36 a.m. OK GNU C++14 TESTS 25 15 1024000 1000
63260333 KawattaTaido A Oct. 23, 2019, 7:55 p.m. OK GNU C++14 TESTS 25 15 1024000 1000
67958238 anikaduskar A Dec. 30, 2019, 10:31 a.m. OK GNU C++14 TESTS 25 15 1024000 1000
69265476 udit19 A Jan. 21, 2020, 6:28 p.m. OK GNU C++14 TESTS 25 15 1024000 1000
54900568 Alpha_SCP014_ A June 1, 2019, 6:22 a.m. OK GNU C++17 TESTS 25 15 307200 1000
62863842 usagami A Oct. 18, 2019, 11:37 a.m. OK GNU C++17 TESTS 25 15 307200 1000
55614239 idxcalccalc A June 16, 2019, 7:53 a.m. OK GNU C++17 TESTS 25 15 307200 1000
54744834 ee180002045 A May 28, 2019, 9:59 a.m. OK GNU C++17 TESTS 25 15 307200 1000
53612037 Mahdi_Noor_Hasan0 A May 1, 2019, 1:37 p.m. OK GNU C++17 TESTS 25 15 307200 1000
53598551 bibibibi A May 1, 2019, 6:14 a.m. OK GNU C++17 TESTS 25 15 307200 1000
53597445 znmsmg A May 1, 2019, 5:34 a.m. OK GNU C++17 TESTS 25 15 307200 1000
53266609 bnubeginner A April 25, 2019, 2:24 a.m. OK GNU C++17 TESTS 25 15 307200 1000
53222747 lyh1999 A April 24, 2019, 12:45 p.m. OK GNU C++17 TESTS 25 15 307200 1000
53207784 Tanvir_PSTU15 A April 24, 2019, 1:02 a.m. OK GNU C++17 TESTS 25 15 307200 1000
54024414 ak_j17_258749 A May 12, 2019, 11:42 a.m. OK Go TESTS 25 31 716800 1000
54511370 tony_stark1 A May 23, 2019, 7:19 a.m. OK Go TESTS 25 842 0 1000
53149194 clovis A April 22, 2019, 3:42 p.m. OK Go TESTS 25 857 0 1000
53297712 code_report A April 25, 2019, 6:20 p.m. OK Haskell TESTS 25 46 3174400 1000
54880117 codemania A May 31, 2019, 1:50 p.m. OK Haskell TESTS 25 46 7372800 1000
65164130 pizzaEater A Nov. 16, 2019, 12:36 p.m. OK Java 11 TESTS 25 187 0 1000
68068880 Nurmangaliyev A Jan. 2, 2020, 9:17 a.m. OK Java 11 TESTS 25 218 0 1000
57845692 MafKrjoBhai A July 27, 2019, 11:03 a.m. OK Java 8 TESTS 25 108 0 1000
53193392 Abdullah_Al_Mahmud A April 23, 2019, 1:57 p.m. OK Java 8 TESTS 25 108 0 1000
69076512 Justcodeit22 A Jan. 19, 2020, 3:37 a.m. OK Java 8 TESTS 25 109 0 1000
65223613 intelligence A Nov. 16, 2019, 11:07 p.m. OK Java 8 TESTS 25 109 0 1000
64553335 bluesky111 A Nov. 9, 2019, 1:40 a.m. OK Java 8 TESTS 25 109 0 1000
63945948 zekigurbuz A Oct. 31, 2019, 6:57 p.m. OK Java 8 TESTS 25 109 0 1000
61435629 formalist A Sept. 28, 2019, 4:30 p.m. OK Java 8 TESTS 25 109 0 1000
57987847 LOBsTerr A July 30, 2019, 12:04 p.m. OK Java 8 TESTS 25 109 0 1000
56996538 Hemose A July 13, 2019, 11 p.m. OK Java 8 TESTS 25 109 0 1000
56360997 younesbmz A June 30, 2019, 7:16 p.m. OK Java 8 TESTS 25 109 0 1000
53150505 orazbek A April 22, 2019, 3:48 p.m. OK JavaScript TESTS 25 46 2457600 1000
53534760 I.A.K.O.V A April 30, 2019, 12:54 a.m. OK Kotlin TESTS 25 109 0 1000
60766062 Spheniscine A Sept. 18, 2019, 11 a.m. OK Kotlin TESTS 25 124 0 1000
53171975 3mph4515 A April 22, 2019, 10:42 p.m. OK Kotlin TESTS 25 140 0 1000
56290442 sashamc A June 30, 2019, 12:05 a.m. OK Kotlin TESTS 25 155 0 1000
53481830 heat_wave A April 28, 2019, 8:51 p.m. OK Kotlin TESTS 25 155 0 1000
53190973 Tomkowski A April 23, 2019, 12:51 p.m. OK Kotlin TESTS 25 155 0 1000
53433319 RenbouPufel A April 27, 2019, 5:36 p.m. OK Kotlin TESTS 25 156 0 1000
54415690 Killer45 A May 20, 2019, 12:27 p.m. OK Kotlin TESTS 25 170 15564800 1000
53739794 -arg A May 4, 2019, 1:07 p.m. OK Kotlin TESTS 25 171 0 1000
60765876 Spheniscine A Sept. 18, 2019, 10:56 a.m. OK Kotlin TESTS 25 217 4300800 1000
53824461 ibrahimisl5673 A May 6, 2019, 3:10 p.m. OK Mono C# TESTS 25 46 1126400 1000
54017805 IleksaNott A May 12, 2019, 7:52 a.m. OK Mono C# TESTS 25 46 1126400 1000
53585834 Stepanova_Anastasia A April 30, 2019, 6:27 p.m. OK Mono C# TESTS 25 46 1126400 1000
53534312 ivanidze.kirov A April 30, 2019, 12:21 a.m. OK Mono C# TESTS 25 61 1126400 1000
53158561 balibalo756 A April 22, 2019, 4:24 p.m. OK Mono C# TESTS 25 61 1126400 1000
54762394 og.kostya A May 28, 2019, 4:10 p.m. OK Mono C# TESTS 25 61 1126400 1000
53202093 ilia.kot A April 23, 2019, 6:32 p.m. OK Mono C# TESTS 25 61 1740800 1000
53866548 yerzh A May 8, 2019, 4:40 a.m. OK Mono C# TESTS 25 61 2252800 1000
59221106 ansergeyg A Aug. 21, 2019, 12:15 p.m. OK Mono C# TESTS 25 62 1126400 1000
53187911 artworks A April 23, 2019, 11:21 a.m. OK Mono C# TESTS 25 62 1126400 1000
53212107 vjudge2 A April 24, 2019, 6:16 a.m. OK MS C++ TESTS 25 15 307200 1000
53903820 vjudge4 A May 9, 2019, 11:43 a.m. OK MS C++ TESTS 25 30 307200 1000
54208766 vjudge2 A May 15, 2019, 4:43 p.m. OK MS C++ TESTS 25 30 307200 1000
53190996 vjudge3 A April 23, 2019, 12:51 p.m. OK MS C++ TESTS 25 30 819200 1000
53207291 yznl A April 24, 2019, 12:11 a.m. OK MS C++ TESTS 25 30 819200 1000
53908060 vjudge5 A May 9, 2019, 1:51 p.m. OK MS C++ TESTS 25 30 819200 1000
61259339 vjudge1 A Sept. 25, 2019, 11:11 a.m. OK MS C++ TESTS 25 30 921600 1000
64065956 vjudge3 A Nov. 2, 2019, 5:47 a.m. OK MS C++ TESTS 25 31 307200 1000
54846783 vjudge1 A May 30, 2019, 2:21 p.m. OK MS C++ TESTS 25 31 307200 1000
55077752 vjudge5 A June 4, 2019, 9:25 a.m. OK MS C++ TESTS 25 31 307200 1000
53280909 _IchBin_ A April 25, 2019, 11:54 a.m. OK MS C++ 2017 TESTS 25 30 921600 1000
53289826 filip200795 A April 25, 2019, 3:14 p.m. OK MS C++ 2017 TESTS 25 30 921600 1000
53877820 A19180288 A May 8, 2019, 12:57 p.m. OK MS C++ 2017 TESTS 25 31 307200 1000
64160667 vjudge3 A Nov. 3, 2019, 2:24 p.m. OK MS C++ 2017 TESTS 25 31 307200 1000
53163221 L_nai A April 22, 2019, 5 p.m. OK MS C++ 2017 TESTS 25 31 512000 1000
53165982 L_nai A April 22, 2019, 6:06 p.m. OK MS C++ 2017 TESTS 25 31 512000 1000
55336287 Gee1 A June 9, 2019, 1:58 p.m. OK MS C++ 2017 TESTS 25 31 614400 1000
53174476 z1213471415 A April 23, 2019, 2:20 a.m. OK MS C++ 2017 TESTS 25 31 819200 1000
61354021 parisa.mqdm A Sept. 27, 2019, 9:41 a.m. OK MS C++ 2017 TESTS 25 31 921600 1000
63060135 Moen1578 A Oct. 21, 2019, 8:19 a.m. OK MS C++ 2017 TESTS 25 31 921600 1000
53162151 mm944 A April 22, 2019, 4:45 p.m. OK PascalABC.NET TESTS 25 296 102400 1000
56524551 Gimber A July 4, 2019, 4:32 p.m. OK PascalABC.NET TESTS 25 342 1024000 1000
53496953 lostamok A April 29, 2019, 12:19 p.m. OK PHP TESTS 25 46 0 1000
53153143 erbolat0311 A April 22, 2019, 4 p.m. OK PHP TESTS 25 46 0 1000
53165920 batyrbek96 A April 22, 2019, 6:04 p.m. OK PHP TESTS 25 46 0 1000
55500960 mayakin A June 12, 2019, 3:02 p.m. OK PHP TESTS 25 46 0 1000
53150834 nds92 A April 22, 2019, 3:49 p.m. OK PHP TESTS 25 77 20582400 1000
53212656 kpiiitb A April 24, 2019, 6:37 a.m. OK PyPy 2 TESTS 25 124 1228800 1000
55867974 shubhankarsharma00 A June 21, 2019, 1:10 p.m. OK PyPy 2 TESTS 25 124 1228800 1000
53213998 sainitejeshwar A April 24, 2019, 7:32 a.m. OK PyPy 2 TESTS 25 124 1228800 1000
53907532 ilkerkosaroglu A May 9, 2019, 1:34 p.m. OK PyPy 2 TESTS 25 124 1536000 1000
56145804 anshuman16423 A June 27, 2019, 6:11 a.m. OK PyPy 2 TESTS 25 124 9216000 1000
53224617 YESMAths A April 24, 2019, 1:45 p.m. OK PyPy 2 TESTS 25 607 24166400 1000
53168133 c1729 A April 22, 2019, 7:14 p.m. OK PyPy 3 TESTS 25 139 2150400 1000
53217561 toxzi A April 24, 2019, 9:50 a.m. OK PyPy 3 TESTS 25 139 3072000 1000
53167221 Leendertz A April 22, 2019, 6:42 p.m. OK PyPy 3 TESTS 25 140 3072000 1000
55600816 gaurav17050 A June 15, 2019, 6:14 p.m. OK PyPy 3 TESTS 25 140 3072000 1000
53923622 tarush A May 9, 2019, 4:21 p.m. OK PyPy 3 TESTS 25 140 3072000 1000
53483881 enutroh A April 29, 2019, 12:18 a.m. OK PyPy 3 TESTS 25 140 3072000 1000
53218083 adityaramesh A April 24, 2019, 10:13 a.m. OK PyPy 3 TESTS 25 140 3072000 1000
53217468 hrustim25 A April 24, 2019, 9:46 a.m. OK PyPy 3 TESTS 25 140 3072000 1000
53212782 pranaymalhan A April 24, 2019, 6:43 a.m. OK PyPy 3 TESTS 25 140 3072000 1000
53198645 nobe0716 A April 23, 2019, 4:47 p.m. OK PyPy 3 TESTS 25 140 3072000 1000
53169647 elistark A April 22, 2019, 8:18 p.m. OK Python 2 TESTS 25 202 614400 1000
55287528 15927491671 A June 8, 2019, 5:54 a.m. OK Python 2 TESTS 25 202 5222400 1000
54246052 29029 A May 16, 2019, 2:56 p.m. OK Python 2 TESTS 25 202 5222400 1000
54433069 franckmy A May 21, 2019, 2:20 a.m. OK Python 2 TESTS 25 218 614400 1000
53183207 SoSooding A April 23, 2019, 8:47 a.m. OK Python 2 TESTS 25 218 5222400 1000
53172108 tangchuanxin A April 22, 2019, 10:55 p.m. OK Python 2 TESTS 25 218 5324800 1000
53158355 anyahyaou A April 22, 2019, 4:23 p.m. OK Python 2 TESTS 25 234 5222400 1000
53459600 iliakakurin A April 28, 2019, 6:19 a.m. OK Python 3 TESTS 25 109 1126400 1000
53598814 SilverLining_ A May 1, 2019, 6:22 a.m. OK Python 3 TESTS 25 124 1126400 1000
53539026 rycarok A April 30, 2019, 5:14 a.m. OK Python 3 TESTS 25 124 1126400 1000
56419857 chiragshah9696 A July 2, 2019, 6:49 a.m. OK Python 3 TESTS 25 139 1126400 1000
54791331 PhmHngThai A May 29, 2019, 7:17 a.m. OK Python 3 TESTS 25 139 1126400 1000
53948991 sami.m.b A May 10, 2019, 8:28 a.m. OK Python 3 TESTS 25 139 1126400 1000
53492829 AL_DEEB A April 29, 2019, 9:53 a.m. OK Python 3 TESTS 25 139 1126400 1000
53367668 chizhonkov A April 26, 2019, 4:53 p.m. OK Python 3 TESTS 25 139 1126400 1000
53260379 loayCPS A April 24, 2019, 7 p.m. OK Python 3 TESTS 25 139 1126400 1000
53537682 yum A April 30, 2019, 4 a.m. OK Python 3 TESTS 25 140 1126400 1000
53302374 Hitesh2023 A April 25, 2019, 10:04 p.m. OK Ruby TESTS 25 171 716800 1000
53152333 kobae964 A April 22, 2019, 3:56 p.m. OK Rust TESTS 25 31 3174400 1000

remove filters

Back to search problems