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 |
---|---|---|---|---|---|---|
1610 | Codeforces Global Round 17 | FINISHED | False | 10800 | 99501863 | Nov. 23, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2786 ) | D | Not Quite Lee | PROGRAMMING | combinatorics math number theory |
B"Lee couldn't sleep lately, because he had nightmares. In one of his nightmares (which was about an unbalanced global round), he decided to fight back and propose a problem below (which you should solve) to balance the round, hopefully setting him free from the nightmares. A non-empty array b_1, b_2, ldots, b_m is called good, if there exist m integer sequences which satisfy the following properties: You are given an array a_1, a_2, ldots, a_n . It has 2^n - 1 nonempty subsequences. Find how many of them are good. As this number can be very large, output it modulo 10^9 + 7 . An array c is a subsequence of an array d if c can be obtained from d by deletion of several (possibly, zero or all) elements. The first line contains a single integer n ( 2 <= n <= 2 cdot 10^5 ) -- the size of array a . The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ) -- elements of the array. Print a single integer -- the number of nonempty good subsequences of a , modulo 10^9 + 7 . For the first test, two examples of good subsequences are [2, 7] and [2, 2, 4, 7] : For b = [2, 7] we can use (-3, -4) as the first sequence and (-2, -1, ldots, 4) as the second. Note that subsequence [2, 7] appears twice in [2, 2, 4, 7] , so we have to count it twice. For b = [2, 2, 4, 7] the following sequences would satisfy the properties: (-1, 0) , (-3, -2) , (0, 1, 2, 3) and (-3, -2, ldots, 3) "... |
Codeforces Global Round 17 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
136672365 | Gassa | D | Nov. 23, 2021, 4:55 p.m. | OK | D | TESTS | 10 | 77 | 13516800 | ||
136677954 | YHT_Konnyaku | D | Nov. 23, 2021, 5:28 p.m. | OK | GNU C++14 | TESTS | 10 | 15 | 5324800 | ||
136696640 | et3_tsy | D | Nov. 24, 2021, 1:18 a.m. | OK | GNU C++14 | TESTS | 10 | 31 | 3276800 | ||
136693665 | Iamso | D | Nov. 23, 2021, 10:50 p.m. | OK | GNU C++14 | TESTS | 10 | 31 | 33587200 | ||
136662854 | nishkarsh | D | Nov. 23, 2021, 4:09 p.m. | OK | GNU C++14 | TESTS | 10 | 46 | 0 | ||
136698531 | m1979823301m | D | Nov. 24, 2021, 2:25 a.m. | OK | GNU C++14 | TESTS | 10 | 61 | 0 | ||
136704601 | HienNSHNnoob123 | D | Nov. 24, 2021, 4:51 a.m. | OK | GNU C++14 | TESTS | 10 | 61 | 0 | ||
136668188 | siddharthmishra11s | D | Nov. 23, 2021, 4:33 p.m. | OK | GNU C++14 | TESTS | 10 | 61 | 3174400 | ||
136668675 | Grzmot | D | Nov. 23, 2021, 4:35 p.m. | OK | GNU C++14 | TESTS | 10 | 62 | 0 | ||
136696560 | CrazyTeaMajor | D | Nov. 24, 2021, 1:15 a.m. | OK | GNU C++14 | TESTS | 10 | 62 | 0 | ||
136676952 | syf1201 | D | Nov. 23, 2021, 5:22 p.m. | OK | GNU C++14 | TESTS | 10 | 62 | 0 | ||
136662317 | peterwuyihong | D | Nov. 23, 2021, 4:07 p.m. | OK | GNU C++17 | TESTS | 10 | 31 | 1740800 | ||
136678170 | OctaneC8H18 | D | Nov. 23, 2021, 5:29 p.m. | OK | GNU C++17 | TESTS | 10 | 46 | 0 | ||
136678578 | XyzL | D | Nov. 23, 2021, 5:31 p.m. | OK | GNU C++17 | TESTS | 10 | 46 | 10035200 | ||
136677477 | zwu2020014736 | D | Nov. 23, 2021, 5:25 p.m. | OK | GNU C++17 | TESTS | 10 | 46 | 36864000 | ||
136677150 | snewptl | D | Nov. 23, 2021, 5:23 p.m. | OK | GNU C++17 | TESTS | 10 | 61 | 819200 | ||
136669458 | inside_man | D | Nov. 23, 2021, 4:39 p.m. | OK | GNU C++17 | TESTS | 10 | 61 | 2867200 | ||
136708517 | XeroxAuto | D | Nov. 24, 2021, 5:58 a.m. | OK | GNU C++17 | TESTS | 10 | 61 | 4300800 | ||
136701653 | sleep__ | D | Nov. 24, 2021, 3:44 a.m. | OK | GNU C++17 | TESTS | 10 | 62 | 0 | ||
136702317 | KeeWuuuuu | D | Nov. 24, 2021, 3:59 a.m. | OK | GNU C++17 | TESTS | 10 | 62 | 0 | ||
136695964 | DanielYuek | D | Nov. 24, 2021, 12:48 a.m. | OK | GNU C++17 | TESTS | 10 | 62 | 0 | ||
136665785 | codelegend | D | Nov. 23, 2021, 4:21 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 0 | ||
136674497 | antguz | D | Nov. 23, 2021, 5:07 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 0 | ||
136661131 | islingr | D | Nov. 23, 2021, 4:03 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 0 | ||
136670582 | dblark | D | Nov. 23, 2021, 4:45 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 819200 | ||
136676578 | Acranker | D | Nov. 23, 2021, 5:20 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 819200 | ||
136667710 | TimeWarp101 | D | Nov. 23, 2021, 4:30 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 819200 | ||
136686998 | vishalagrawal | D | Nov. 23, 2021, 7:28 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 1638400 | ||
136708439 | WAtoAC2001 | D | Nov. 24, 2021, 5:57 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 1638400 | ||
136703355 | werus23 | D | Nov. 24, 2021, 4:24 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 1638400 | ||
136687966 | Bit_Master_2205 | D | Nov. 23, 2021, 7:48 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 46 | 1638400 | ||
136681224 | I_francis | D | Nov. 23, 2021, 5:59 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 31 | 0 | ||
136704629 | nathan_luiz | D | Nov. 24, 2021, 4:52 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 31 | 1638400 | ||
136680805 | fatemetmhr | D | Nov. 23, 2021, 5:55 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 31 | 3993600 | ||
136670123 | zglicz | D | Nov. 23, 2021, 4:42 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
136698908 | L1ngYu233 | D | Nov. 24, 2021, 2:35 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
136681182 | baddog | D | Nov. 23, 2021, 5:58 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
136675476 | Doniil | D | Nov. 23, 2021, 5:13 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
136674044 | bipinpathak | D | Nov. 23, 2021, 5:04 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
136666662 | akshaykhandelwal | D | Nov. 23, 2021, 4:25 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
136683847 | Gokussjz | D | Nov. 23, 2021, 6:32 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 819200 | ||
136664785 | clyring | D | Nov. 23, 2021, 4:17 p.m. | OK | Haskell | TESTS | 10 | 46 | 0 | ||
136681777 | soumit915 | D | Nov. 23, 2021, 6:05 p.m. | OK | Java 11 | TESTS | 10 | 202 | 0 | ||
136662579 | kencho8128 | D | Nov. 23, 2021, 4:08 p.m. | OK | Java 11 | TESTS | 10 | 218 | 0 | ||
136674415 | bobib | D | Nov. 23, 2021, 5:06 p.m. | OK | Java 11 | TESTS | 10 | 265 | 2457600 | ||
136661641 | mphillotry | D | Nov. 23, 2021, 4:04 p.m. | OK | Java 11 | TESTS | 10 | 452 | 10649600 | ||
136666264 | Matheolympiade | D | Nov. 23, 2021, 4:23 p.m. | OK | Java 11 | TESTS | 10 | 483 | 0 | ||
136704472 | dzhi | D | Nov. 24, 2021, 4:49 a.m. | OK | Java 11 | TESTS | 10 | 498 | 3481600 | ||
136665049 | Dukkha | D | Nov. 23, 2021, 4:18 p.m. | OK | Java 11 | TESTS | 10 | 514 | 0 | ||
136675612 | kkkkush | D | Nov. 23, 2021, 5:14 p.m. | OK | Java 8 | TESTS | 10 | 186 | 2969600 | ||
136689698 | DarLam | D | Nov. 23, 2021, 8:24 p.m. | OK | Java 8 | TESTS | 10 | 217 | 2969600 | ||
136666623 | SaveVMK | D | Nov. 23, 2021, 4:25 p.m. | OK | Java 8 | TESTS | 10 | 607 | 3993600 | ||
136670021 | SecondThread | D | Nov. 23, 2021, 4:42 p.m. | OK | Java 8 | TESTS | 10 | 623 | 9830400 | ||
136665720 | grey | D | Nov. 23, 2021, 4:21 p.m. | OK | MS C++ 2017 | TESTS | 10 | 280 | 8192000 | ||
136671586 | russian_proger | D | Nov. 23, 2021, 4:50 p.m. | OK | MS C++ 2017 | TESTS | 10 | 436 | 3174400 | ||
136667211 | Andybar | D | Nov. 23, 2021, 4:28 p.m. | OK | .NET Core C# | TESTS | 10 | 124 | 16896000 | ||
136700289 | OLOGY | D | Nov. 24, 2021, 3:13 a.m. | OK | PyPy 2 | TESTS | 10 | 140 | 13107200 | ||
136663625 | nimiranio | D | Nov. 23, 2021, 4:12 p.m. | OK | PyPy 3 | TESTS | 10 | 171 | 14643200 | ||
136673894 | hxu10 | D | Nov. 23, 2021, 5:03 p.m. | OK | PyPy 3 | TESTS | 10 | 202 | 19968000 | ||
136682158 | bihari_bandar | D | Nov. 23, 2021, 6:10 p.m. | OK | PyPy 3 | TESTS | 10 | 280 | 19148800 | ||
136705851 | epicxtroll | D | Nov. 24, 2021, 5:15 a.m. | OK | PyPy 3 | TESTS | 10 | 295 | 13926400 | ||
136707581 | epicxtroll | D | Nov. 24, 2021, 5:43 a.m. | OK | PyPy 3 | TESTS | 10 | 467 | 13926400 | ||
136674298 | ChesserCoder | D | Nov. 23, 2021, 5:06 p.m. | OK | PyPy 3 | TESTS | 10 | 468 | 86630400 | ||
136684192 | FlakeLCR | D | Nov. 23, 2021, 6:38 p.m. | OK | PyPy 3-64 | TESTS | 10 | 249 | 20787200 | ||
136681951 | pedastrian57 | D | Nov. 23, 2021, 6:07 p.m. | OK | PyPy 3-64 | TESTS | 10 | 280 | 156467200 | ||
136694288 | mnkp | D | Nov. 23, 2021, 11:26 p.m. | OK | PyPy 3-64 | TESTS | 10 | 295 | 28672000 | ||
136668351 | misorin | D | Nov. 23, 2021, 4:33 p.m. | OK | PyPy 3-64 | TESTS | 10 | 311 | 28979200 | ||
136681750 | ctt312000 | D | Nov. 23, 2021, 6:05 p.m. | OK | PyPy 3-64 | TESTS | 10 | 342 | 34099200 | ||
136667127 | titia | D | Nov. 23, 2021, 4:27 p.m. | OK | PyPy 3-64 | TESTS | 10 | 342 | 36352000 | ||
136704937 | OLOGY | D | Nov. 24, 2021, 4:58 a.m. | OK | Python 2 | TESTS | 10 | 265 | 11059200 | ||
136704863 | OLOGY | D | Nov. 24, 2021, 4:56 a.m. | OK | Python 2 | TESTS | 10 | 280 | 11059200 | ||
136704518 | OLOGY | D | Nov. 24, 2021, 4:50 a.m. | OK | Python 2 | TESTS | 10 | 280 | 11059200 | ||
136703813 | OLOGY | D | Nov. 24, 2021, 4:34 a.m. | OK | Python 2 | TESTS | 10 | 420 | 13107200 | ||
136690861 | OLOGY | D | Nov. 23, 2021, 8:58 p.m. | OK | Python 2 | TESTS | 10 | 421 | 13107200 | ||
136689999 | OLOGY | D | Nov. 23, 2021, 8:31 p.m. | OK | Python 2 | TESTS | 10 | 452 | 13107200 | ||
136690080 | OLOGY | D | Nov. 23, 2021, 8:33 p.m. | OK | Python 2 | TESTS | 10 | 467 | 13107200 | ||
136687958 | OLOGY | D | Nov. 23, 2021, 7:48 p.m. | OK | Python 2 | TESTS | 10 | 468 | 12902400 | ||
136690842 | OLOGY | D | Nov. 23, 2021, 8:57 p.m. | OK | Python 2 | TESTS | 10 | 483 | 12902400 | ||
136688150 | OLOGY | D | Nov. 23, 2021, 7:52 p.m. | OK | Python 2 | TESTS | 10 | 483 | 12902400 | ||
136685290 | xincept | D | Nov. 23, 2021, 6:56 p.m. | OK | Python 3 | TESTS | 10 | 187 | 16179200 | ||
136700963 | darklordx | D | Nov. 24, 2021, 3:30 a.m. | OK | Python 3 | TESTS | 10 | 233 | 13107200 | ||
136694501 | kumalimak | D | Nov. 23, 2021, 11:38 p.m. | OK | Rust | TESTS | 10 | 46 | 10547200 |
Back to search problems