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 |
---|---|---|---|---|---|---|
1547 | Codeforces Round 731 (Div. 3) | FINISHED | False | 8100 | 105895499 | July 10, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 26480 ) | B | Alphabetical Strings | PROGRAMMING | greedy implementation strings |
B'A string s of length n ( 1 <= n <= 26 ) is called alphabetical if it can be obtained using the following algorithm: In other words, iterate over the n first letters of the Latin alphabet starting from 'a ' and etc. Each time we prepend a letter to the left of the string s or append a letter to the right of the string s . Strings that can be obtained in that way are alphabetical. For example, the following strings are alphabetical: "a", "ba", "ab", "bac" and "ihfcbadeg". The following strings are not alphabetical: "z", "aa", "ca", "acb", "xyz" and "ddcba". From the given string, determine if it is alphabetical. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then t test cases follow. Each test case is written on a separate line that contains one string s . String s consists of lowercase letters of the Latin alphabet and has a length between 1 and 26 , inclusive. Output t lines, each of them must contain the answer to the corresponding test case. Output YES if the given string s is alphabetical and NO otherwise. You can output YES and NO in any case (for example, strings yEs, yes, Yes and YES will be recognized as a positive answer). The example contains test cases from the main part of the condition. '... |
Codeforces Round #731 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
122010175 | Sakib62 | B | July 10, 2021, 5:55 p.m. | OK | Clang++17 Diagnostics | TESTS | 4 | 139 | 0 | ||
122000715 | tuongvy27082002lqd | B | July 10, 2021, 4:47 p.m. | OK | FPC | TESTS | 2 | 46 | 102400 | ||
122003424 | it_vineh_ | B | July 10, 2021, 4:55 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
122005965 | ThursdayLoser | B | July 10, 2021, 5:11 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 0 | ||
122014288 | wyxchn | B | July 10, 2021, 6:46 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 0 | ||
122039154 | Shobhit_28 | B | July 11, 2021, 5:45 a.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
122011813 | Mercersfire | B | July 10, 2021, 6:13 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 0 | ||
122013689 | ashu.1718 | B | July 10, 2021, 6:38 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 1536000 | ||
122016337 | kuba_422 | B | July 10, 2021, 7:19 p.m. | OK | GNU C11 | TESTS | 4 | 61 | 0 | ||
122025136 | sdfz171047 | B | July 10, 2021, 11:35 p.m. | OK | GNU C++11 | TESTS | 4 | 0 | 0 | ||
122032193 | _BARUTO | B | July 11, 2021, 3:19 a.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122028933 | Hustle_FM | B | July 11, 2021, 2 a.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122012124 | omprakash.eeeiitbhu | B | July 10, 2021, 6:17 p.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122011072 | Rajib_119 | B | July 10, 2021, 6:05 p.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122008244 | pastilia | B | July 10, 2021, 5:33 p.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122004599 | Eckchart | B | July 10, 2021, 5:01 p.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
122004360 | bomberabhi16 | B | July 10, 2021, 5 p.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
122034344 | BilibiliTDASC | B | July 11, 2021, 4:05 a.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122032995 | vandoor | B | July 11, 2021, 3:37 a.m. | OK | GNU C++11 | TESTS | 4 | 15 | 0 | ||
122003205 | RaHuL7 | B | July 10, 2021, 4:54 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
122032940 | vinty | B | July 11, 2021, 3:36 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
122032885 | Viraj_Ashar_2001 | B | July 11, 2021, 3:35 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
122032543 | Sunil_02 | B | July 11, 2021, 3:27 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
122036929 | Aayushi_Sharma | B | July 11, 2021, 5 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
122037473 | _Nikki_ | B | July 11, 2021, 5:13 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
122039821 | p.ferrari | B | July 11, 2021, 5:57 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
122035552 | spek | B | July 11, 2021, 4:33 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
122033864 | survival_001 | B | July 11, 2021, 3:55 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
122035445 | juan123 | B | July 11, 2021, 4:31 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
122002717 | mohitsethia | B | July 10, 2021, 4:52 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
122004780 | somil_jain_120 | B | July 10, 2021, 5:02 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
122004101 | Amir-Kigash | B | July 10, 2021, 4:58 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
122003130 | sudhanshumishra221220 | B | July 10, 2021, 4:53 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
122001216 | Abhas_15 | B | July 10, 2021, 4:48 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
121998663 | FeatherV | B | July 10, 2021, 4:44 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
121998527 | shalekberli | B | July 10, 2021, 4:43 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
121998036 | intersection | B | July 10, 2021, 4:43 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
121999476 | pranda | B | July 10, 2021, 4:45 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 102400 | ||
122000730 | lavish_2002 | B | July 10, 2021, 4:47 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 102400 | ||
122014693 | PatelVin2707 | B | July 10, 2021, 6:53 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 0 | 0 | ||
122030926 | cherry_su | B | July 11, 2021, 2:51 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
122029953 | vineeth_kada | B | July 11, 2021, 2:27 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
122029887 | vineeth_kada | B | July 11, 2021, 2:25 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
122036625 | vikash_007 | B | July 11, 2021, 4:54 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 15 | 0 | ||
122038188 | AK-I-RA | B | July 11, 2021, 5:28 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 15 | 0 | ||
122039841 | simply_hooman | B | July 11, 2021, 5:57 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 15 | 0 | ||
122035411 | AsheeshP | B | July 11, 2021, 4:30 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 15 | 0 | ||
122034435 | srinjoy_ray | B | July 11, 2021, 4:07 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
122032137 | CODERGARV | B | July 11, 2021, 3:18 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
122016423 | RetiredProgrammer | B | July 10, 2021, 7:20 p.m. | OK | Go | TESTS | 4 | 30 | 102400 | ||
122013048 | Reverie | B | July 10, 2021, 6:29 p.m. | OK | Go | TESTS | 4 | 31 | 0 | ||
122028265 | nguyenkimphuongtrang | B | July 11, 2021, 1:40 a.m. | OK | Haskell | TESTS | 4 | 15 | 102400 | ||
122015735 | rego97 | B | July 10, 2021, 7:09 p.m. | OK | Haskell | TESTS | 4 | 62 | 102400 | ||
122003582 | GhoulvsTitan | B | July 10, 2021, 4:55 p.m. | OK | Java 11 | TESTS | 2 | 170 | 0 | ||
122007850 | nirmal_8 | B | July 10, 2021, 5:29 p.m. | OK | Java 11 | TESTS | 4 | 171 | 0 | ||
122017477 | npwolverine | B | July 10, 2021, 7:38 p.m. | OK | Java 11 | TESTS | 4 | 186 | 0 | ||
122007992 | Uncle_Road | B | July 10, 2021, 5:31 p.m. | OK | Java 11 | TESTS | 4 | 186 | 0 | ||
121998101 | tusharpruth | B | July 10, 2021, 4:43 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
122022123 | codebook_2000 | B | July 10, 2021, 9:33 p.m. | OK | Java 11 | TESTS | 4 | 187 | 0 | ||
122032231 | Dark_magic_56 | B | July 11, 2021, 3:20 a.m. | OK | Java 11 | TESTS | 4 | 187 | 19558400 | ||
122032234 | Anuj_Panchal | B | July 11, 2021, 3:20 a.m. | OK | Java 11 | TESTS | 4 | 202 | 102400 | ||
122000259 | manushrijain26 | B | July 10, 2021, 4:47 p.m. | OK | Java 11 | TESTS | 2 | 218 | 102400 | ||
122034168 | pratham_b | B | July 11, 2021, 4:01 a.m. | OK | Java 11 | TESTS | 4 | 233 | 0 | ||
121999759 | dev_14 | B | July 10, 2021, 4:46 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
122024313 | GVR | B | July 10, 2021, 10:57 p.m. | OK | Java 8 | TESTS | 4 | 93 | 0 | ||
122011935 | akshit09 | B | July 10, 2021, 6:15 p.m. | OK | Java 8 | TESTS | 4 | 93 | 0 | ||
122017326 | pranavggupta06 | B | July 10, 2021, 7:36 p.m. | OK | Java 8 | TESTS | 4 | 108 | 0 | ||
122021704 | Snow | B | July 10, 2021, 9:21 p.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
122030845 | khalludi123 | B | July 11, 2021, 2:49 a.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
122029911 | Zatona | B | July 11, 2021, 2:26 a.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
122022147 | akshit09 | B | July 10, 2021, 9:34 p.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
122016815 | dexter_1205 | B | July 10, 2021, 7:27 p.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
122035006 | Shobhit_Behl | B | July 11, 2021, 4:20 a.m. | OK | Java 8 | TESTS | 8 | 124 | 0 | ||
121999742 | VarunUtsav | B | July 10, 2021, 4:46 p.m. | OK | MS C++ | TESTS | 2 | 15 | 0 | ||
122029268 | yyeshell | B | July 11, 2021, 2:10 a.m. | OK | MS C++ | TESTS | 4 | 46 | 0 | ||
122008093 | Tangerine | B | July 10, 2021, 5:32 p.m. | OK | MS C++ 2017 | TESTS | 4 | 30 | 0 | ||
122027838 | overword | B | July 11, 2021, 1:26 a.m. | OK | MS C++ 2017 | TESTS | 4 | 31 | 0 | ||
122035908 | dlehgns011 | B | July 11, 2021, 4:42 a.m. | OK | MS C++ 2017 | TESTS | 8 | 31 | 0 | ||
122027781 | chenxijie | B | July 11, 2021, 1:25 a.m. | OK | MS C++ 2017 | TESTS | 4 | 31 | 0 | ||
122015142 | CtrlAlt | B | July 10, 2021, 7 p.m. | OK | MS C++ 2017 | TESTS | 4 | 46 | 0 | ||
122023637 | steeltrooper | B | July 10, 2021, 10:29 p.m. | OK | MS C++ 2017 | TESTS | 4 | 46 | 0 | ||
122007145 | gabalawy | B | July 10, 2021, 5:22 p.m. | OK | MS C++ 2017 | TESTS | 4 | 46 | 0 | ||
122001065 | ss7253191 | B | July 10, 2021, 4:48 p.m. | OK | MS C++ 2017 | TESTS | 2 | 46 | 0 | ||
122026374 | Christal. | B | July 11, 2021, 12:32 a.m. | OK | MS C++ 2017 | TESTS | 4 | 62 | 0 | ||
122020330 | saloid | B | July 10, 2021, 8:41 p.m. | OK | MS C++ 2017 | TESTS | 4 | 62 | 0 | ||
122018561 | ansergeyg | B | July 10, 2021, 8 p.m. | OK | .NET Core C# | TESTS | 4 | 62 | 3072000 | ||
122006977 | ShashankZobb | B | July 10, 2021, 5:20 p.m. | OK | PyPy 2 | TESTS | 4 | 187 | 5222400 | ||
122020618 | coden00b2021 | B | July 10, 2021, 8:48 p.m. | OK | PyPy 2 | TESTS | 4 | 342 | 7884800 | ||
122006408 | Mr.Inconsistent | B | July 10, 2021, 5:15 p.m. | OK | PyPy 3 | TESTS | 4 | 156 | 5734400 | ||
122038635 | zayn. | B | July 11, 2021, 5:36 a.m. | OK | PyPy 3 | TESTS | 8 | 171 | 3891200 | ||
122032921 | vikassnwl | B | July 11, 2021, 3:35 a.m. | OK | PyPy 3 | TESTS | 4 | 171 | 6963200 | ||
122018577 | pk31299 | B | July 10, 2021, 8 p.m. | OK | PyPy 3 | TESTS | 4 | 171 | 8396800 | ||
122019631 | Optimismy | B | July 10, 2021, 8:24 p.m. | OK | PyPy 3 | TESTS | 4 | 186 | 8192000 | ||
122035667 | not_tehlka | B | July 11, 2021, 4:36 a.m. | OK | PyPy 3 | TESTS | 8 | 187 | 8192000 | ||
122016805 | Mistaek | B | July 10, 2021, 7:27 p.m. | OK | PyPy 3 | TESTS | 4 | 217 | 9318400 | ||
122024648 | augurar | B | July 10, 2021, 11:13 p.m. | OK | PyPy 3 | TESTS | 4 | 233 | 5222400 | ||
122020437 | DeepBisman | B | July 10, 2021, 8:44 p.m. | OK | PyPy 3 | TESTS | 4 | 233 | 9625600 | ||
122039790 | alemario | B | July 11, 2021, 5:57 a.m. | OK | PyPy 3 | TESTS | 8 | 280 | 6860800 | ||
122000239 | eugalt | B | July 10, 2021, 4:47 p.m. | OK | Python 3 | TESTS | 2 | 93 | 204800 | ||
121998247 | juanjoselp1 | B | July 10, 2021, 4:43 p.m. | OK | Python 3 | TESTS | 2 | 108 | 0 | ||
122004126 | 100jek | B | July 10, 2021, 4:58 p.m. | OK | Python 3 | TESTS | 2 | 124 | 716800 | ||
122000595 | vaibhav333 | B | July 10, 2021, 4:47 p.m. | OK | Python 3 | TESTS | 2 | 140 | 0 | ||
121999969 | VaibhavAg31 | B | July 10, 2021, 4:46 p.m. | OK | Python 3 | TESTS | 2 | 140 | 0 | ||
121999008 | RealChukcha | B | July 10, 2021, 4:44 p.m. | OK | Python 3 | TESTS | 2 | 140 | 0 | ||
122000601 | Beruny_1603029 | B | July 10, 2021, 4:47 p.m. | OK | Python 3 | TESTS | 2 | 155 | 0 | ||
122002633 | NeoCipher | B | July 10, 2021, 4:52 p.m. | OK | Python 3 | TESTS | 2 | 155 | 409600 | ||
122001988 | ram18080 | B | July 10, 2021, 4:49 p.m. | OK | Python 3 | TESTS | 2 | 156 | 0 | ||
122000119 | sakshatmali | B | July 10, 2021, 4:46 p.m. | OK | Python 3 | TESTS | 2 | 170 | 0 | ||
122005015 | cstoku | B | July 10, 2021, 5:04 p.m. | OK | Rust | TESTS | 2 | 140 | 0 |
Back to search problems