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 |
---|---|---|---|---|---|---|
1876 | Codeforces Round 902 (Div. 1, based on COMPFEST 15 - Final Round) | FINISHED | False | 9000 | 40424063 | Oct. 8, 2023, 9:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 914 ) | D | Lexichromatography | PROGRAMMING | combinatorics dfs and similar ds graphs two pointers |
B"Pak Chanek loves his faculty, the Faculty of Computer Science, University of Indonesia (Fasilkom). He wants to play with the colours of the faculty's logo, blue and red. There is an array a consisting of n elements, element i has a value of a_i . Pak Chanek wants to colour each element in the array blue or red such that these following conditions are satisfied: How many different colourings satisfy all those conditions? Since the answer can be very big, print the answer modulo 998 ,244 ,353 . Two colourings are different if and only if there is at least one element that is blue in one colouring, but red in the other. ^ dagger A subsequence of an array is a sequence that can be obtained from the array by deleting some elements (possibly none), without changing the order of the remaining elements. ^ ddagger Let p and q be two different sequences. Sequence p is said to be lexicographically less than sequence q if and only if p is a prefix of q or there is an index i such that p_j=q_j holds for every 1 <= q j<i , and p_i<q_i . In particular, an empty sequence is always lexicographically less than any non-empty sequence. The first line contains a single integer n ( 1 <= q n <= q 2 cdot10^5 ) -- the size of array a . The second line contains n integers a_1,a_2,a_3, ldots,a_n ( 1 <= q a_i <= q2 cdot10^5 ). An integer representing the number of different colourings that satisfy all of the problem's conditions, modulo 998 ,244 ,353 . In the first example, the 3 ways for colouring all elements from index 1 to index 8 are: As an example, if we colour the elements from index 1 to index 8 to be red, red, blue, red, red, blue, blue, blue, it is not valid colouring, because for subarray a[2..6] , there are 0 blue elements with value 3 and 2 red elements with value 3 , making subarra"... |
Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
227169752 | KumaTachiRen | D | Oct. 8, 2023, 10:47 a.m. | OK | C# 8 | TESTS | 56 | 171 | 12697600 | ||
227163802 | hos.lyric | D | Oct. 8, 2023, 10:30 a.m. | OK | D | TESTS | 56 | 233 | 24064000 | ||
227265551 | haimian | D | Oct. 9, 2023, 2:24 a.m. | OK | GNU C++14 | TESTS | 56 | 62 | 5324800 | ||
227163530 | zhangjianjuncd | D | Oct. 8, 2023, 10:30 a.m. | OK | GNU C++14 | TESTS | 56 | 78 | 4198400 | ||
227174001 | _Guoyh_ | D | Oct. 8, 2023, 10:59 a.m. | OK | GNU C++14 | TESTS | 56 | 78 | 5017600 | ||
227199475 | heaksicn | D | Oct. 8, 2023, 1:21 p.m. | OK | GNU C++14 | TESTS | 56 | 78 | 7782400 | ||
227273438 | hht2005 | D | Oct. 9, 2023, 4:52 a.m. | OK | GNU C++14 | TESTS | 56 | 78 | 10752000 | ||
227185058 | PEIMUDA | D | Oct. 8, 2023, 11:30 a.m. | OK | GNU C++14 | TESTS | 56 | 93 | 5222400 | ||
227171873 | cqbzdj | D | Oct. 8, 2023, 10:53 a.m. | OK | GNU C++14 | TESTS | 56 | 93 | 5632000 | ||
227262318 | realSub | D | Oct. 9, 2023, 1:07 a.m. | OK | GNU C++14 | TESTS | 56 | 93 | 8294400 | ||
227270423 | E-ray | D | Oct. 9, 2023, 4:04 a.m. | OK | GNU C++14 | TESTS | 56 | 93 | 9318400 | ||
227198917 | XZC__Bobby | D | Oct. 8, 2023, 1:17 p.m. | OK | GNU C++14 | TESTS | 56 | 93 | 10649600 | ||
227267090 | applese | D | Oct. 9, 2023, 2:59 a.m. | OK | GNU C++17 | TESTS | 56 | 62 | 6041600 | ||
227183565 | txl16211 | D | Oct. 8, 2023, 11:27 a.m. | OK | GNU C++17 | TESTS | 56 | 62 | 47411200 | ||
227217507 | AlexanderL | D | Oct. 8, 2023, 3:25 p.m. | OK | GNU C++17 | TESTS | 56 | 77 | 5222400 | ||
227253964 | shadow9236 | D | Oct. 8, 2023, 9:15 p.m. | OK | GNU C++17 | TESTS | 56 | 78 | 6144000 | ||
227253926 | shadow9236 | D | Oct. 8, 2023, 9:14 p.m. | OK | GNU C++17 | TESTS | 56 | 78 | 6144000 | ||
227241518 | superMOOZ | D | Oct. 8, 2023, 6:42 p.m. | OK | GNU C++17 | TESTS | 56 | 78 | 10752000 | ||
227253884 | shadow9236 | D | Oct. 8, 2023, 9:13 p.m. | OK | GNU C++17 | TESTS | 56 | 92 | 6144000 | ||
227176040 | krzysztov | D | Oct. 8, 2023, 11:05 a.m. | OK | GNU C++17 | TESTS | 56 | 93 | 10854400 | ||
227186039 | LTL_td | D | Oct. 8, 2023, 11:33 a.m. | OK | GNU C++17 | TESTS | 56 | 108 | 7680000 | ||
227141424 | Um_nik | D | Oct. 8, 2023, 9:46 a.m. | OK | GNU C++17 | TESTS | 56 | 109 | 4505600 | ||
227269234 | wsyear | D | Oct. 9, 2023, 3:41 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 46 | 6553600 | ||
227268603 | wsyear | D | Oct. 9, 2023, 3:29 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 61 | 6656000 | ||
227166561 | torisasami | D | Oct. 8, 2023, 10:38 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 4198400 | ||
227268676 | leexzq | D | Oct. 9, 2023, 3:30 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 5324800 | ||
227274377 | ftt2333 | D | Oct. 9, 2023, 5:06 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 5632000 | ||
227192628 | ethening | D | Oct. 8, 2023, 12:39 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 5836800 | ||
227268908 | relyt871 | D | Oct. 9, 2023, 3:35 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 6451200 | ||
227253423 | trainwithoutpain | D | Oct. 8, 2023, 9:05 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 9113600 | ||
227252405 | trainwithoutpain | D | Oct. 8, 2023, 8:50 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 9113600 | ||
227251899 | trainwithoutpain | D | Oct. 8, 2023, 8:43 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 62 | 9113600 | ||
227185557 | tobias.glimmerfors | D | Oct. 8, 2023, 11:32 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 3276800 | ||
227182382 | zzpcd | D | Oct. 8, 2023, 11:23 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 3891200 | ||
227265403 | Lylova | D | Oct. 9, 2023, 2:21 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 4300800 | ||
227176689 | LuCpp | D | Oct. 8, 2023, 11:07 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 4812800 | ||
227155489 | CharlieV | D | Oct. 8, 2023, 10:13 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 5120000 | ||
227209183 | stkwill | D | Oct. 8, 2023, 2:28 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 5222400 | ||
227170314 | MagicSpark | D | Oct. 8, 2023, 10:48 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 5324800 | ||
227154602 | cljq_cpp | D | Oct. 8, 2023, 10:12 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 5324800 | ||
227217012 | propane | D | Oct. 8, 2023, 3:22 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 5427200 | ||
227209050 | YYYLLL2021 | D | Oct. 8, 2023, 2:27 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 46 | 5427200 | ||
227213290 | Tlatoani | D | Oct. 8, 2023, 2:56 p.m. | OK | Kotlin 1.6 | TESTS | 56 | 545 | 40448000 | ||
227164421 | chinerist | D | Oct. 8, 2023, 10:32 a.m. | OK | PyPy 3-64 | TESTS | 56 | 374 | 46284800 | ||
227180692 | toam | D | Oct. 8, 2023, 11:18 a.m. | OK | PyPy 3-64 | TESTS | 56 | 405 | 54886400 | ||
227176012 | qwerty787788 | D | Oct. 8, 2023, 11:05 a.m. | OK | Rust 2021 | TESTS | 56 | 62 | 13926400 | ||
227162384 | Egor | D | Oct. 8, 2023, 10:27 a.m. | OK | Rust 2021 | TESTS | 56 | 78 | 14643200 |
Back to search problems