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 |
---|---|---|---|---|---|---|
1743 | Educational Codeforces Round 137 (Rated for Div. 2) | FINISHED | False | 7200 | 65805899 | Oct. 17, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 259 ) | G | Antifibonacci Cut | PROGRAMMING | bitmasks combinatorics dp math | 3000 |
B"Note that the memory limit is unusual. Let's define the sequence of Fibonacci strings as follows: f_0 is 0, f_1 is 1, f_i is f_{i-1} + f_{i-2} for i>1 ( + denotes the concatenation of two strings). So, for example, f_2 is 10, f_3 is 101, f_4 is 10110. For a given string s , let's define g(s) as the number of ways to cut it into several (any number, possibly even just one) strings such that none of these strings are Fibonacci strings. For example, if s is 10110101, g(s) = 3 since there are three ways to cut it: You are given a sequence of strings s_1, s_2, ... , s_n . Calculate g(s_1), g(s_1 + s_2), ... , g(s_1 + s_2 + ldots + s_n) . Since these values can be huge, print them modulo 998244353 . The first line of the input contains one integer n ( 1 <= n <= 3 cdot 10^3 ). Then, n lines follow. The i -th line contains the string s_i ( 1 <= |s_i| <= 10^3 ), consisting of characters 0 and/or 1. Print n integers, where the i -th integer is g(s_1 + s_2 + ldots + s_i) bmod 998244353 . "... |
Educational Codeforces Round 137 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
176820139 | superguymj | G | Oct. 18, 2022, 2 a.m. | OK | GNU C++14 | TESTS | 26 | 2262 | 0 | 3000 | |
176817420 | william556 | G | Oct. 18, 2022, 1 a.m. | OK | GNU C++14 | TESTS | 26 | 2277 | 0 | 3000 | |
176824991 | Krystallos | G | Oct. 18, 2022, 3:25 a.m. | OK | GNU C++14 | TESTS | 26 | 2308 | 0 | 3000 | |
176818330 | DerekFeng | G | Oct. 18, 2022, 1:20 a.m. | OK | GNU C++17 | TESTS | 26 | 374 | 716800 | 3000 | |
176782304 | HoshimiOWO | G | Oct. 17, 2022, 4:54 p.m. | OK | GNU C++17 | TESTS | 26 | 1154 | 3174400 | 3000 | |
176813149 | 2000031238 | G | Oct. 17, 2022, 10:45 p.m. | OK | GNU C++17 | TESTS | 26 | 1794 | 204800 | 3000 | |
176786080 | dmnewone | G | Oct. 17, 2022, 5:17 p.m. | OK | GNU C++17 | TESTS | 26 | 1794 | 204800 | 3000 | |
176779128 | dmenezes | G | Oct. 17, 2022, 4:40 p.m. | OK | GNU C++17 | TESTS | 26 | 2043 | 102400 | 3000 | |
176833297 | Gayathri_1261 | G | Oct. 18, 2022, 5:31 a.m. | OK | GNU C++17 | TESTS | 26 | 3977 | 512000 | 3000 | |
176798726 | TEJA_NAGENDRA | G | Oct. 17, 2022, 7:05 p.m. | OK | GNU C++17 | TESTS | 26 | 4180 | 3174400 | 3000 | |
176783067 | chemthan | G | Oct. 17, 2022, 4:58 p.m. | OK | GNU C++17 | TESTS | 26 | 4664 | 1024000 | 3000 | |
176782293 | chemthan | G | Oct. 17, 2022, 4:54 p.m. | OK | GNU C++17 | TESTS | 26 | 6286 | 1024000 | 3000 | |
176818457 | DerekFeng | G | Oct. 18, 2022, 1:24 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 280 | 716800 | 3000 | |
176818426 | DerekFeng | G | Oct. 18, 2022, 1:23 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 280 | 716800 | 3000 | |
176795150 | huangxiaohua | G | Oct. 17, 2022, 6:29 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 390 | 102400 | 3000 | |
176793601 | DuRen13 | G | Oct. 17, 2022, 6:16 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 390 | 102400 | 3000 | |
176793457 | DuRen13 | G | Oct. 17, 2022, 6:14 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 404 | 0 | 3000 | |
176794001 | DuRen13 | G | Oct. 17, 2022, 6:19 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 405 | 102400 | 3000 | |
176793915 | DuRen13 | G | Oct. 17, 2022, 6:18 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 405 | 102400 | 3000 | |
176793414 | DuRen13 | G | Oct. 17, 2022, 6:14 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 405 | 102400 | 3000 | |
176793787 | DuRen13 | G | Oct. 17, 2022, 6:17 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 452 | 102400 | 3000 | |
176793693 | DuRen13 | G | Oct. 17, 2022, 6:16 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 576 | 102400 | 3000 | |
176787833 | tute7627 | G | Oct. 17, 2022, 5:30 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 280 | 409600 | 3000 | |
176818417 | DerekFeng | G | Oct. 18, 2022, 1:23 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 296 | 716800 | 3000 | |
176818347 | DerekFeng | G | Oct. 18, 2022, 1:21 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 312 | 716800 | 3000 | |
176778608 | Nero | G | Oct. 17, 2022, 4:38 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 327 | 1126400 | 3000 | |
176826731 | SSerxhs | G | Oct. 18, 2022, 3:55 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 670 | 3891200 | 3000 | |
176794790 | Kapt | G | Oct. 17, 2022, 6:26 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 733 | 2764800 | 3000 | |
176825958 | SSerxhs | G | Oct. 18, 2022, 3:42 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 826 | 3891200 | 3000 | |
176825795 | SSerxhs | G | Oct. 18, 2022, 3:40 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 857 | 3993600 | 3000 | |
176825876 | SSerxhs | G | Oct. 18, 2022, 3:41 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 858 | 3993600 | 3000 | |
176825757 | SSerxhs | G | Oct. 18, 2022, 3:39 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 888 | 3993600 | 3000 |
Back to search problems