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 |
---|---|---|---|---|---|---|
1280 | Codeforces Round 607 (Div. 1) | FINISHED | False | 7200 | 155436899 | Dec. 15, 2019, 5:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 5464 ) | A | Cut and Paste | PROGRAMMING | implementation math | 1700 |
B'We start with a string s consisting only of the digits 1 , 2 , or 3 . The length of s is denoted by |s| . For each i from 1 to |s| , the i -th character of s is denoted by s_i . There is one cursor. The cursor 's location ell is denoted by an integer in {0, ldots, |s| } , with the following meaning: We denote by s_ text{left} the string to the left of the cursor and s_ text{right} the string to the right of the cursor. We also have a string c , which we call our clipboard, which starts out as empty. There are three types of actions: The cursor initially starts at ell = 0 . Then, we perform the following procedure: You 're given the initial string s and the integer x . What is the length of s when the procedure stops? Since this value may be very large, only find it modulo 10^9 + 7 . It is guaranteed that ell <= |s| at any time. The first line of input contains a single integer t ( 1 <= t <= 1000 ) denoting the number of test cases. The next lines contain descriptions of the test cases. The first line of each test case contains a single integer x ( 1 <= x <= 10^6 ). The second line of each test case consists of the initial string s ( 1 <= |s| <= 500 ). It is guaranteed, that s consists of the characters "1", "2", "3". It is guaranteed that the sum of x in a single file is at most 10^6 . It is guaranteed that in each test case before the procedure will stop it will be true that ell <= |s| at any time. For each test case, output a single line containing a single integer denoting the answer for that test case modulo 10^9 + 7 . Let 's illustrate what happens with the first test case. Initially, we have s = 231. Initially, ell = 0 and c = varepsilon (the empty string). The following things happen if we follow the procedure above: At th'... |
Codeforces Round #607 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
68993096 | alexeikom | A | Jan. 17, 2020, 4:04 p.m. | OK | GNU C11 | TESTS | 91 | 608 | 1024000 | 1700 | |
67071174 | pab2 | A | Dec. 17, 2019, 12:49 p.m. | OK | GNU C++11 | TESTS | 90 | 46 | 819200 | 1700 | |
66905922 | ztc. | A | Dec. 15, 2019, 5:24 a.m. | OK | GNU C++11 | TESTS | 90 | 46 | 819200 | 1700 | |
66904436 | AutumnKite | A | Dec. 15, 2019, 5:19 a.m. | OK | GNU C++11 | TESTS | 90 | 46 | 819200 | 1700 | |
67326864 | frodakcin | A | Dec. 21, 2019, 10:05 a.m. | OK | GNU C++11 | TESTS | 91 | 46 | 819200 | 1700 | |
68809140 | vjudge2 | A | Jan. 14, 2020, 3:57 p.m. | OK | GNU C++11 | TESTS | 91 | 46 | 1024000 | 1700 | |
68309947 | dredwerkz | A | Jan. 6, 2020, 10:44 a.m. | OK | GNU C++11 | TESTS | 91 | 46 | 1024000 | 1700 | |
68033301 | icfan | A | Jan. 1, 2020, 10:35 a.m. | OK | GNU C++11 | TESTS | 91 | 46 | 1024000 | 1700 | |
67140325 | qsqx | A | Dec. 18, 2019, 6:28 a.m. | OK | GNU C++11 | TESTS | 90 | 46 | 1024000 | 1700 | |
67048423 | Frame233 | A | Dec. 17, 2019, 1:40 a.m. | OK | GNU C++11 | TESTS | 90 | 46 | 1024000 | 1700 | |
69073205 | Jormungandre | A | Jan. 19, 2020, 12:27 a.m. | OK | GNU C++11 | TESTS | 91 | 46 | 1024000 | 1700 | |
66903032 | hitman623 | A | Dec. 15, 2019, 5:14 a.m. | OK | GNU C++14 | TESTS | 90 | 31 | 2969600 | 1700 | |
66987468 | Nson | A | Dec. 15, 2019, 6:44 p.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
66936533 | nabid_anzum | A | Dec. 15, 2019, 8:38 a.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
66908980 | N_o_o_B | A | Dec. 15, 2019, 5:34 a.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
66905786 | Motarack | A | Dec. 15, 2019, 5:24 a.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
67074096 | nysanier | A | Dec. 17, 2019, 1:50 p.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
66904825 | Ace_02 | A | Dec. 15, 2019, 5:20 a.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
66905363 | onjo | A | Dec. 15, 2019, 5:22 a.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1024000 | 1700 | |
67463791 | F0_0H | A | Dec. 23, 2019, 10:16 a.m. | OK | GNU C++14 | TESTS | 91 | 46 | 1228800 | 1700 | |
66968558 | hiep622032001 | A | Dec. 15, 2019, 12:32 p.m. | OK | GNU C++14 | TESTS | 90 | 46 | 1638400 | 1700 | |
66906689 | EIKOU | A | Dec. 15, 2019, 5:27 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 1024000 | 1700 | |
67020941 | Navick | A | Dec. 16, 2019, 12:56 p.m. | OK | GNU C++17 | TESTS | 90 | 31 | 2150400 | 1700 | |
67395619 | Isomorphism | A | Dec. 21, 2019, 10:39 p.m. | OK | GNU C++17 | TESTS | 91 | 46 | 1024000 | 1700 | |
67296316 | Phortox | A | Dec. 20, 2019, 5:04 p.m. | OK | GNU C++17 | TESTS | 91 | 46 | 1024000 | 1700 | |
67243236 | OussamaJB | A | Dec. 19, 2019, 4:43 p.m. | OK | GNU C++17 | TESTS | 90 | 46 | 1024000 | 1700 | |
68055096 | KrK | A | Jan. 1, 2020, 9:46 p.m. | OK | GNU C++17 | TESTS | 91 | 46 | 1024000 | 1700 | |
67040936 | xyz2606 | A | Dec. 16, 2019, 7:15 p.m. | OK | GNU C++17 | TESTS | 90 | 46 | 1024000 | 1700 | |
67026482 | Kallaf | A | Dec. 16, 2019, 2:30 p.m. | OK | GNU C++17 | TESTS | 90 | 46 | 1024000 | 1700 | |
66926606 | how_to_become_purple | A | Dec. 15, 2019, 6:50 a.m. | OK | GNU C++17 | TESTS | 90 | 46 | 1024000 | 1700 | |
67063082 | Alfeh | A | Dec. 17, 2019, 9:58 a.m. | OK | GNU C++17 | TESTS | 90 | 46 | 1024000 | 1700 | |
66992132 | savinov | A | Dec. 15, 2019, 9:10 p.m. | OK | Go | TESTS | 90 | 46 | 4710400 | 1700 | |
67917404 | randyblythe147 | A | Dec. 29, 2019, 3:56 p.m. | OK | Java 11 | TESTS | 91 | 249 | 0 | 1700 | |
67909810 | randyblythe147 | A | Dec. 29, 2019, 3:20 p.m. | OK | Java 11 | TESTS | 91 | 249 | 0 | 1700 | |
68939866 | ammaarahmad1999 | A | Jan. 16, 2020, 2:04 p.m. | OK | Java 11 | TESTS | 91 | 264 | 0 | 1700 | |
66915358 | nikolay.v.mikhaylov | A | Dec. 15, 2019, 5:58 a.m. | OK | Java 8 | TESTS | 90 | 155 | 0 | 1700 | |
66913092 | Nutella3000 | A | Dec. 15, 2019, 5:49 a.m. | OK | Java 8 | TESTS | 90 | 155 | 0 | 1700 | |
66909466 | Suzukaze | A | Dec. 15, 2019, 5:36 a.m. | OK | Java 8 | TESTS | 90 | 155 | 0 | 1700 | |
66910509 | martins | A | Dec. 15, 2019, 5:40 a.m. | OK | Java 8 | TESTS | 90 | 170 | 0 | 1700 | |
67073026 | kirtidabas | A | Dec. 17, 2019, 1:28 p.m. | OK | Java 8 | TESTS | 90 | 170 | 12185600 | 1700 | |
66992570 | beroul | A | Dec. 15, 2019, 9:29 p.m. | OK | Java 8 | TESTS | 90 | 171 | 0 | 1700 | |
66904475 | Xylenox | A | Dec. 15, 2019, 5:19 a.m. | OK | Java 8 | TESTS | 90 | 171 | 0 | 1700 | |
68367820 | barakraganosungam | A | Jan. 7, 2020, 4:38 p.m. | OK | Java 8 | TESTS | 91 | 171 | 6758400 | 1700 | |
67384458 | ln_nl | A | Dec. 21, 2019, 5:21 p.m. | OK | Java 8 | TESTS | 91 | 171 | 11468800 | 1700 | |
67052879 | StayAwayFromBitches | A | Dec. 17, 2019, 5:17 a.m. | OK | Java 8 | TESTS | 90 | 186 | 0 | 1700 | |
68079199 | camypaper | A | Jan. 2, 2020, 1:45 p.m. | OK | Mono C# | TESTS | 91 | 1871 | 53964800 | 1700 | |
66902671 | LoneFox | A | Dec. 15, 2019, 5:13 a.m. | OK | MS C++ | TESTS | 90 | 62 | 1024000 | 1700 | |
66903696 | Apsara | A | Dec. 15, 2019, 5:16 a.m. | OK | MS C++ | TESTS | 90 | 62 | 1024000 | 1700 | |
69391375 | Cods-CP | A | Jan. 23, 2020, 3:55 a.m. | OK | MS C++ | TESTS | 91 | 77 | 5632000 | 1700 | |
68659371 | AleksanderBalobanov | A | Jan. 12, 2020, 1:10 p.m. | OK | MS C++ 2017 | TESTS | 91 | 46 | 1228800 | 1700 | |
67050343 | pichulia | A | Dec. 17, 2019, 3:31 a.m. | OK | MS C++ 2017 | TESTS | 90 | 46 | 3993600 | 1700 | |
66911633 | vpike | A | Dec. 15, 2019, 5:44 a.m. | OK | MS C++ 2017 | TESTS | 90 | 61 | 1024000 | 1700 | |
68303096 | Parsa84 | A | Jan. 6, 2020, 7:43 a.m. | OK | MS C++ 2017 | TESTS | 91 | 62 | 1024000 | 1700 | |
67360517 | Serge07 | A | Dec. 21, 2019, 12:36 p.m. | OK | MS C++ 2017 | TESTS | 91 | 93 | 5017600 | 1700 | |
68659573 | sudha_18501 | A | Jan. 12, 2020, 1:13 p.m. | OK | MS C++ 2017 | TESTS | 91 | 841 | 6041600 | 1700 | |
68609073 | varsha_18524 | A | Jan. 11, 2020, 3:02 p.m. | OK | MS C++ 2017 | TESTS | 91 | 858 | 6041600 | 1700 | |
68640635 | 18wh1a0546 | A | Jan. 12, 2020, 7:24 a.m. | OK | MS C++ 2017 | TESTS | 91 | 858 | 6041600 | 1700 | |
66919841 | nukeykt | A | Dec. 15, 2019, 6:18 a.m. | OK | MS C++ 2017 | TESTS | 90 | 967 | 2048000 | 1700 | |
68914602 | yumtam | A | Jan. 16, 2020, 8:16 a.m. | OK | PyPy 2 | TESTS | 91 | 234 | 9216000 | 1700 | |
66902464 | alexwice | A | Dec. 15, 2019, 5:12 a.m. | OK | PyPy 2 | TESTS | 90 | 342 | 30003200 | 1700 | |
66906269 | auouo | A | Dec. 15, 2019, 5:25 a.m. | OK | PyPy 3 | TESTS | 90 | 373 | 18432000 | 1700 | |
68054047 | drogon_nest | A | Jan. 1, 2020, 8:47 p.m. | OK | PyPy 3 | TESTS | 91 | 374 | 18432000 | 1700 | |
67785771 | aliansari | A | Dec. 28, 2019, 12:42 p.m. | OK | PyPy 3 | TESTS | 91 | 374 | 18432000 | 1700 | |
68030219 | Mayank08 | A | Jan. 1, 2020, 8:48 a.m. | OK | PyPy 3 | TESTS | 91 | 374 | 22323200 | 1700 | |
66996168 | tushartyagi8750 | A | Dec. 16, 2019, 1:43 a.m. | OK | PyPy 3 | TESTS | 90 | 389 | 18432000 | 1700 | |
66965748 | SMMaster | A | Dec. 15, 2019, 11:28 a.m. | OK | PyPy 3 | TESTS | 90 | 390 | 18432000 | 1700 | |
66907676 | neterukun | A | Dec. 15, 2019, 5:30 a.m. | OK | PyPy 3 | TESTS | 90 | 529 | 80179200 | 1700 | |
67055075 | kevinwinatamichael | A | Dec. 17, 2019, 6:25 a.m. | OK | PyPy 3 | TESTS | 90 | 1496 | 24883200 | 1700 | |
66930636 | nwi | A | Dec. 15, 2019, 7:26 a.m. | OK | Python 2 | TESTS | 90 | 733 | 3584000 | 1700 | |
66969764 | sruthi_1729 | A | Dec. 15, 2019, 12:51 p.m. | OK | Python 3 | TESTS | 90 | 1466 | 17715200 | 1700 | |
66917065 | Kalptaru | A | Dec. 15, 2019, 6:05 a.m. | OK | Python 3 | TESTS | 90 | 1638 | 22220800 | 1700 | |
68053973 | drogon_nest | A | Jan. 1, 2020, 8:43 p.m. | OK | Python 3 | TESTS | 91 | 1684 | 18022400 | 1700 | |
68074730 | gin_7 | A | Jan. 2, 2020, 12:01 p.m. | OK | Python 3 | TESTS | 91 | 1731 | 6553600 | 1700 | |
67832773 | Lazy_lad | A | Dec. 28, 2019, 6:45 p.m. | OK | Python 3 | TESTS | 91 | 1824 | 6246400 | 1700 | |
67198180 | drpdada | A | Dec. 19, 2019, 9:55 a.m. | OK | Python 3 | TESTS | 90 | 1887 | 6758400 | 1700 | |
66966423 | fascineted | A | Dec. 15, 2019, 11:53 a.m. | OK | Python 3 | TESTS | 90 | 1949 | 6758400 | 1700 | |
67120133 | Mounicach | A | Dec. 17, 2019, 6:02 p.m. | OK | Python 3 | TESTS | 90 | 1964 | 6451200 | 1700 | |
69488707 | UR5ANO | A | Jan. 24, 2020, 9 p.m. | OK | Python 3 | TESTS | 91 | 1965 | 8294400 | 1700 | |
68450966 | Praseedakatari | A | Jan. 9, 2020, 2:20 p.m. | OK | Python 3 | TESTS | 91 | 1981 | 4710400 | 1700 | |
66904215 | sansen | A | Dec. 15, 2019, 5:18 a.m. | OK | Rust | TESTS | 90 | 62 | 25190400 | 1700 | |
66991882 | sansen | A | Dec. 15, 2019, 8:59 p.m. | OK | Rust | TESTS | 90 | 78 | 29081600 | 1700 |
Back to search problems