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 |
---|---|---|---|---|---|---|
1796 | Educational Codeforces Round 144 (Rated for Div. 2) | FINISHED | False | 7200 | 54228299 | Feb. 28, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 18901 ) | A | Typical Interview Problem | PROGRAMMING | implementation strings |
B"The FB-string is formed as follows. Initially, it is empty. We go through all positive integers, starting from 1 , in ascending order, and do the following for each integer: Note that if an integer is divisible by both 3 and 5 , we append F, and then B, not in the opposite order. The first 10 characters of the FB-string are FBFFBFFBFB: the first F comes from the integer 3 , the next character (B) comes from 5 , the next F comes from the integer 6 , and so on. It's easy to see that this string is infinitely long. Let f_i be the i -th character of FB-string; so, f_1 is F, f_2 is B, f_3 is F, f_4 is F, and so on. You are given a string s , consisting of characters F and/or B. You have to determine whether it is a substring (contiguous subsequence) of the FB-string. In other words, determine if it is possible to choose two integers l and r ( 1 <= l <= r ) so that the string f_l f_{l+1} f_{l+2} ... f_r is exactly s . For example: The first line contains one integer t ( 1 <= t <= 2046 ) -- the number of test cases. Each test case consists of two lines. The first line contains one integer k ( 1 <= k <= 10 ) -- the number of characters in s . The second line contains s , which is a string of exactly k characters. Each character of s is either F or B. For each test case, print YES if s is a substring of the FB-string, or NO otherwise. You may print each letter in any case (YES, yes, Yes will all be recognized as positive answer, NO, no and nO will all be recognized as negative answer). "... |
Educational Codeforces Round 144 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
195390626 | arafamin | A | Feb. 28, 2023, 11:28 p.m. | OK | C# 10 | TESTS | 3 | 31 | 0 | ||
195390676 | arafamin | A | Feb. 28, 2023, 11:29 p.m. | OK | C# 10 | TESTS | 3 | 46 | 0 | ||
195361843 | czar_ime | A | Feb. 28, 2023, 5:30 p.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 31 | 2150400 | ||
195394390 | whitember | A | March 1, 2023, 1:11 a.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 46 | 0 | ||
195356448 | 2100031906cseh | A | Feb. 28, 2023, 4:54 p.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 171 | 0 | ||
195379813 | salo7aa | A | Feb. 28, 2023, 8:21 p.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 46 | 0 | ||
195370097 | NenadDapic | A | Feb. 28, 2023, 6:39 p.m. | OK | FPC | TESTS | 3 | 15 | 0 | ||
195370586 | MooNaz | A | Feb. 28, 2023, 6:44 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195392482 | Innocent_Garg | A | March 1, 2023, 12:20 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195407302 | edwardnvv57k | A | March 1, 2023, 5:42 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195348695 | 22ced127 | A | Feb. 28, 2023, 4:27 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195349688 | AyushMiglani | A | Feb. 28, 2023, 4:30 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195361104 | himanshu_yv | A | Feb. 28, 2023, 5:24 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195361279 | dmitrijkubik | A | Feb. 28, 2023, 5:25 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195363988 | maruf_bro | A | Feb. 28, 2023, 5:46 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
195363013 | the_broken_keyboard | A | Feb. 28, 2023, 5:38 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 307200 | ||
195403431 | astronom1cal | A | March 1, 2023, 4:42 a.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
195396178 | wsyhb | A | March 1, 2023, 2:02 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195363844 | Mayank2707 | A | Feb. 28, 2023, 5:45 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195363876 | wannacode | A | Feb. 28, 2023, 5:45 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195370286 | ApuYe | A | Feb. 28, 2023, 6:41 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195392150 | fanypcd | A | March 1, 2023, 12:11 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195392344 | InamiAnju | A | March 1, 2023, 12:17 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195394477 | LXH-cat | A | March 1, 2023, 1:13 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195408900 | Babbar_606 | A | March 1, 2023, 6:04 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195404890 | MEM_TheCoder | A | March 1, 2023, 5:06 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195401491 | REEEEEEEE3 | A | March 1, 2023, 4:04 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
195407453 | mayur0481 | A | March 1, 2023, 5:44 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195405740 | __InnocentStranger__ | A | March 1, 2023, 5:19 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195405589 | wasi00007 | A | March 1, 2023, 5:17 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195405146 | azizzamonov | A | March 1, 2023, 5:10 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195404997 | n1ckerwin | A | March 1, 2023, 5:08 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195403670 | iprom | A | March 1, 2023, 4:46 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195402892 | Sp3cTer | A | March 1, 2023, 4:32 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195402683 | Tanvir_Ahmed_Khan | A | March 1, 2023, 4:28 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195402303 | RasButAss12352 | A | March 1, 2023, 4:20 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195401524 | Darthrider212 | A | March 1, 2023, 4:04 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
195398439 | fakhoury | A | March 1, 2023, 2:55 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195406206 | risel | A | March 1, 2023, 5:26 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195404455 | wehtam_b03 | A | March 1, 2023, 4:59 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195404376 | wehtam_b03 | A | March 1, 2023, 4:58 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195404350 | wehtam_b03 | A | March 1, 2023, 4:58 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195404309 | wehtam_b03 | A | March 1, 2023, 4:57 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195404225 | wehtam_b03 | A | March 1, 2023, 4:56 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195403325 | drip. | A | March 1, 2023, 4:40 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195402918 | lzlfire | A | March 1, 2023, 4:32 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195400128 | vioalbert | A | March 1, 2023, 3:34 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
195403678 | shhmad | A | March 1, 2023, 4:46 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195403818 | orange_rain | A | March 1, 2023, 4:49 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195404010 | dhairya.r | A | March 1, 2023, 4:52 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195404036 | Yhlas_Y | A | March 1, 2023, 4:53 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195404602 | dhairya.r | A | March 1, 2023, 5:02 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195404841 | sqy | A | March 1, 2023, 5:05 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195405257 | sp_0510 | A | March 1, 2023, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195405450 | rakshith21mohan | A | March 1, 2023, 5:15 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195407052 | zhangkang | A | March 1, 2023, 5:38 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195408868 | Atul-1706 | A | March 1, 2023, 6:03 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
195402584 | __Serendipity | A | March 1, 2023, 4:26 a.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
195360059 | Hinnawi24 | A | Feb. 28, 2023, 5:17 p.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
195371607 | lock_infinity | A | Feb. 28, 2023, 6:54 p.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
195403746 | ok.surazz | A | March 1, 2023, 4:47 a.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
195398133 | the_unseen | A | March 1, 2023, 2:48 a.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
195368178 | Ankita1129 | A | Feb. 28, 2023, 6:21 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
195363042 | XIN | A | Feb. 28, 2023, 5:39 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
195352575 | aryangupta1604 | A | Feb. 28, 2023, 4:36 p.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
195369502 | 1803arpitthakor | A | Feb. 28, 2023, 6:33 p.m. | OK | Java 11 | TESTS | 3 | 218 | 102400 | ||
195369653 | danuj828 | A | Feb. 28, 2023, 6:35 p.m. | OK | Java 11 | TESTS | 3 | 233 | 0 | ||
195368731 | RammohanSharma | A | Feb. 28, 2023, 6:26 p.m. | OK | Java 17 | TESTS | 3 | 171 | 614400 | ||
195402876 | frey4 | A | March 1, 2023, 4:32 a.m. | OK | Java 17 | TESTS | 3 | 171 | 716800 | ||
195361418 | luci9868 | A | Feb. 28, 2023, 5:26 p.m. | OK | Java 17 | TESTS | 3 | 202 | 0 | ||
195348008 | khirasariyak | A | Feb. 28, 2023, 4:26 p.m. | OK | Java 17 | TESTS | 3 | 202 | 0 | ||
195348454 | banurr | A | Feb. 28, 2023, 4:27 p.m. | OK | Java 17 | TESTS | 3 | 202 | 409600 | ||
195368404 | vikash_45 | A | Feb. 28, 2023, 6:23 p.m. | OK | Java 17 | TESTS | 3 | 202 | 614400 | ||
195364821 | AdityaGupta19 | A | Feb. 28, 2023, 5:53 p.m. | OK | Java 17 | TESTS | 3 | 217 | 1228800 | ||
195364334 | Krishna_40 | A | Feb. 28, 2023, 5:49 p.m. | OK | Java 17 | TESTS | 3 | 218 | 1228800 | ||
195349672 | banurr | A | Feb. 28, 2023, 4:30 p.m. | OK | Java 17 | TESTS | 3 | 218 | 1433600 | ||
195358081 | Suraj1607 | A | Feb. 28, 2023, 5:04 p.m. | OK | Java 17 | TESTS | 3 | 233 | 512000 | ||
195404431 | Kenzhezhan | A | March 1, 2023, 4:59 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
195368081 | Koka | A | Feb. 28, 2023, 6:20 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
195360154 | Mohamed_Ahmed | A | Feb. 28, 2023, 5:17 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
195356762 | DebugEntityTeam | A | Feb. 28, 2023, 4:56 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
195362500 | crudeCode | A | Feb. 28, 2023, 5:34 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
195362674 | crudeCode | A | Feb. 28, 2023, 5:36 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
195361165 | formidablechief_27 | A | Feb. 28, 2023, 5:24 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
195365329 | hitman_gorilla13 | A | Feb. 28, 2023, 5:57 p.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
195364343 | toufique_husein | A | Feb. 28, 2023, 5:49 p.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
195362306 | crudeCode | A | Feb. 28, 2023, 5:33 p.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
195350935 | 153floppa | A | Feb. 28, 2023, 4:32 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
195394424 | swseverance | A | March 1, 2023, 1:12 a.m. | OK | Node.js | TESTS | 3 | 77 | 2150400 | ||
195360680 | bvv- | A | Feb. 28, 2023, 5:21 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 3276800 | ||
195359978 | bvv- | A | Feb. 28, 2023, 5:16 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 3276800 | ||
195359914 | bvv- | A | Feb. 28, 2023, 5:16 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 3276800 | ||
195359650 | bvv- | A | Feb. 28, 2023, 5:14 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 3276800 | ||
195347373 | bvf | A | Feb. 28, 2023, 4:24 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 3481600 | ||
195360030 | bvv- | A | Feb. 28, 2023, 5:16 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 3276800 | ||
195363475 | duck_man123 | A | Feb. 28, 2023, 5:42 p.m. | OK | PyPy 3 | TESTS | 3 | 171 | 4710400 | ||
195356325 | maxim-sidorov | A | Feb. 28, 2023, 4:54 p.m. | OK | PyPy 3 | TESTS | 3 | 171 | 4915200 | ||
195383388 | dwen | A | Feb. 28, 2023, 9:05 p.m. | OK | PyPy 3 | TESTS | 3 | 186 | 4505600 | ||
195354126 | kaiser7lu | A | Feb. 28, 2023, 4:43 p.m. | OK | PyPy 3 | TESTS | 3 | 186 | 4710400 | ||
195388105 | SoleProprietor | A | Feb. 28, 2023, 10:25 p.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 2355200 | ||
195383999 | voicon | A | Feb. 28, 2023, 9:14 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 3686400 | ||
195401080 | The_Murderer | A | March 1, 2023, 3:55 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 4608000 | ||
195394106 | Yansou | A | March 1, 2023, 1:04 a.m. | OK | PyPy 3-64 | TESTS | 3 | 93 | 4915200 | ||
195358142 | Vashesh | A | Feb. 28, 2023, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 3 | 93 | 5632000 | ||
195374971 | rmr | A | Feb. 28, 2023, 7:27 p.m. | OK | PyPy 3-64 | TESTS | 3 | 108 | 4812800 | ||
195394045 | _No_More_Coding_ | A | March 1, 2023, 1:02 a.m. | OK | PyPy 3-64 | TESTS | 3 | 124 | 5222400 | ||
195398144 | vizzy205 | A | March 1, 2023, 2:48 a.m. | OK | PyPy 3-64 | TESTS | 3 | 140 | 7065600 | ||
195407459 | LazyRGuy | A | March 1, 2023, 5:44 a.m. | OK | PyPy 3-64 | TESTS | 3 | 155 | 7168000 | ||
195369225 | Omar.Gawdat | A | Feb. 28, 2023, 6:31 p.m. | OK | PyPy 3-64 | TESTS | 3 | 155 | 8192000 | ||
195386824 | _NOUR | A | Feb. 28, 2023, 9:59 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
195408908 | nath01 | A | March 1, 2023, 6:04 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195405104 | PlayBunny14 | A | March 1, 2023, 5:09 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195403183 | SIGMA_MAN | A | March 1, 2023, 4:38 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195401782 | ssg_2003 | A | March 1, 2023, 4:10 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195401271 | az_1zbek | A | March 1, 2023, 3:59 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195400909 | fadygamil12 | A | March 1, 2023, 3:52 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195400800 | prathamnagaria | A | March 1, 2023, 3:49 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195396136 | Letmecry | A | March 1, 2023, 2:01 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
195387018 | Mousa-Mahmood-hilal-1 | A | Feb. 28, 2023, 10:03 p.m. | OK | Python 3 | TESTS | 3 | 46 | 0 |
Back to search problems