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 |
---|---|---|---|---|---|---|
1800 | Codeforces Round 855 (Div. 3) | FINISHED | False | 8100 | 59498663 | March 2, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4025 ) | F | Dasha and Nightmares | PROGRAMMING | bitmasks hashing meet-in-the-middle |
B'Dasha, an excellent student, is studying at the best mathematical lyceum in the country. Recently, a mysterious stranger brought n words consisting of small latin letters s_1, s_2, ldots, s_n to the lyceum. Since that day, Dasha has been tormented by nightmares. Consider some pair of integers langle i, j rangle ( 1 <= i <= j <= n ). A nightmare is a string for which it is true: For example, if s_i= "abcdefg" and s_j= "ijklmnopqrstuvwxyz", the pair langle i, j rangle creates a nightmare. Dasha will stop having nightmares if she counts their number. There are too many nightmares, so Dasha needs your help. Count the number of different nightmares. Nightmares are called different if the corresponding pairs langle i, j rangle are different. The pairs langle i_1, j_1 rangle and langle i_2, j_2 rangle are called different if i_1 neq i_2 or j_1 neq j_2 . The first line contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of words. The following n lines contain the words s_1, s_2, ldots, s_n , consisting of small latin letters. It is guaranteed that the total length of words does not exceed 5 cdot 10^6 . Print a single integer -- the number of different nightmares. In the first test, nightmares are created by pairs langle 1, 3 rangle , langle 2, 5 rangle , langle 3, 4 rangle , langle 6, 7 rangle , langle 9, 10 rangle . '... |
Codeforces Round 855 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
195747081 | mban259 | F | March 3, 2023, 2 a.m. | OK | C# 10 | TESTS | 32 | 888 | 143462400 | ||
195755017 | Xanadu13 | F | March 3, 2023, 4:27 a.m. | OK | GNU C++14 | TESTS | 32 | 265 | 282009600 | ||
195712881 | t98slider | F | March 2, 2023, 5:45 p.m. | OK | GNU C++14 | TESTS | 25 | 280 | 17510400 | ||
195758162 | 4Ace | F | March 3, 2023, 5:09 a.m. | OK | GNU C++14 | TESTS | 32 | 514 | 303718400 | ||
195748545 | wsyhb | F | March 3, 2023, 2:34 a.m. | OK | GNU C++14 | TESTS | 32 | 748 | 161484800 | ||
195758309 | xx001 | F | March 3, 2023, 5:11 a.m. | OK | GNU C++14 | TESTS | 32 | 1091 | 303206400 | ||
195758315 | liaopengfei | F | March 3, 2023, 5:11 a.m. | OK | GNU C++14 | TESTS | 32 | 1326 | 159948800 | ||
195744049 | sell_gram_wind | F | March 3, 2023, 12:53 a.m. | OK | GNU C++14 | TESTS | 32 | 1403 | 515584000 | ||
195711226 | Cu_OH_2 | F | March 2, 2023, 5:33 p.m. | OK | GNU C++14 | TESTS | 25 | 1622 | 13107200 | ||
195761495 | tokitsukaze | F | March 3, 2023, 5:49 a.m. | OK | GNU C++14 | TESTS | 32 | 1778 | 113561600 | ||
195746875 | ASincereCoder | F | March 3, 2023, 1:56 a.m. | OK | GNU C++14 | TESTS | 32 | 1965 | 150118400 | ||
195715026 | El3ageed_Abu_Shehab | F | March 2, 2023, 6 p.m. | OK | GNU C++17 | TESTS | 25 | 295 | 275558400 | ||
195752486 | Mkswll | F | March 3, 2023, 3:44 a.m. | OK | GNU C++17 | TESTS | 32 | 295 | 302899200 | ||
195722394 | vahagngyozalyan2009 | F | March 2, 2023, 6:58 p.m. | OK | GNU C++17 | TESTS | 25 | 296 | 282009600 | ||
195716491 | sigma-yyf | F | March 2, 2023, 6:11 p.m. | OK | GNU C++17 | TESTS | 25 | 296 | 282009600 | ||
195755576 | prakhar7472pk | F | March 3, 2023, 4:36 a.m. | OK | GNU C++17 | TESTS | 32 | 311 | 282009600 | ||
195721031 | ankushgarg_04 | F | March 2, 2023, 6:46 p.m. | OK | GNU C++17 | TESTS | 25 | 327 | 282009600 | ||
195710005 | Remake_man | F | March 2, 2023, 5:26 p.m. | OK | GNU C++17 | TESTS | 25 | 358 | 270745600 | ||
195754954 | Xanadu13 | F | March 3, 2023, 4:26 a.m. | OK | GNU C++17 | TESTS | 32 | 358 | 282009600 | ||
195746353 | zhaopeihua | F | March 3, 2023, 1:44 a.m. | OK | GNU C++17 | TESTS | 32 | 374 | 270745600 | ||
195748697 | ac2u | F | March 3, 2023, 2:36 a.m. | OK | GNU C++17 | TESTS | 32 | 374 | 307814400 | ||
195742459 | Pointy | F | March 3, 2023, 12:14 a.m. | OK | GNU C++17 (64) | TESTS | 25 | 280 | 277196800 | ||
195749486 | Followall | F | March 3, 2023, 2:51 a.m. | OK | GNU C++17 (64) | TESTS | 32 | 343 | 282316800 | ||
195748808 | Followall | F | March 3, 2023, 2:38 a.m. | OK | GNU C++17 (64) | TESTS | 32 | 389 | 282316800 | ||
195749627 | therehello | F | March 3, 2023, 2:53 a.m. | OK | GNU C++17 (64) | TESTS | 32 | 405 | 301056000 | ||
195709603 | ChroneZU | F | March 2, 2023, 5:23 p.m. | OK | GNU C++17 (64) | TESTS | 25 | 498 | 312934400 | ||
195742655 | judgme_nt | F | March 3, 2023, 12:20 a.m. | OK | GNU C++17 (64) | TESTS | 25 | 499 | 290099200 | ||
195712418 | Be11T_ | F | March 2, 2023, 5:42 p.m. | OK | GNU C++17 (64) | TESTS | 25 | 872 | 48230400 | ||
195745134 | TJ_Andeviking | F | March 3, 2023, 1:17 a.m. | OK | GNU C++17 (64) | TESTS | 32 | 951 | 61440000 | ||
195733947 | mattagar6 | F | March 2, 2023, 9:07 p.m. | OK | GNU C++17 (64) | TESTS | 25 | 967 | 25395200 | ||
195762165 | John314 | F | March 3, 2023, 5:56 a.m. | OK | GNU C++17 (64) | TESTS | 32 | 1169 | 17920000 | ||
195711540 | Geroin | F | March 2, 2023, 5:35 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 233 | 281292800 | ||
195710640 | Geroin | F | March 2, 2023, 5:30 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 249 | 281292800 | ||
195749609 | djay24 | F | March 3, 2023, 2:53 a.m. | OK | GNU C++20 (64) | TESTS | 32 | 249 | 282624000 | ||
195710463 | Geroin | F | March 2, 2023, 5:29 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 264 | 283955200 | ||
195710394 | Geroin | F | March 2, 2023, 5:28 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 264 | 286412800 | ||
195711338 | huangxiaohua | F | March 2, 2023, 5:34 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 295 | 284262400 | ||
195745222 | cyfmd | F | March 3, 2023, 1:19 a.m. | OK | GNU C++20 (64) | TESTS | 32 | 295 | 295833600 | ||
195710449 | Geroin | F | March 2, 2023, 5:28 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 296 | 284057600 | ||
195752769 | NeroZein | F | March 3, 2023, 3:49 a.m. | OK | GNU C++20 (64) | TESTS | 32 | 296 | 290611200 | ||
195710532 | JJAnawat | F | March 2, 2023, 5:29 p.m. | OK | GNU C++20 (64) | TESTS | 25 | 311 | 284262400 | ||
195721071 | uttaran_das | F | March 2, 2023, 6:46 p.m. | OK | Java 11 | TESTS | 25 | 2136 | 57548800 | ||
195720364 | uttaran_das | F | March 2, 2023, 6:40 p.m. | OK | Java 11 | TESTS | 25 | 3758 | 53862400 | ||
195751834 | Mustela_Erminea | F | March 3, 2023, 3:32 a.m. | OK | Java 17 | TESTS | 32 | 2838 | 66867200 | ||
195717879 | Taukekhan_ | F | March 2, 2023, 6:21 p.m. | OK | Java 8 | TESTS | 25 | 1434 | 53555200 | ||
195755004 | 2023_upsolver | F | March 3, 2023, 4:27 a.m. | OK | Java 8 | TESTS | 32 | 3229 | 265523200 | ||
195754968 | Java_Programmer | F | March 3, 2023, 4:27 a.m. | OK | Java 8 | TESTS | 32 | 3229 | 265523200 | ||
195751044 | Java_Programmer | F | March 3, 2023, 3:17 a.m. | OK | Java 8 | TESTS | 32 | 3369 | 265523200 | ||
195746745 | SugoiTurtle | F | March 3, 2023, 1:53 a.m. | OK | Java 8 | TESTS | 32 | 3400 | 280883200 | ||
195723213 | skimono | F | March 2, 2023, 7:05 p.m. | OK | MS C++ 2017 | TESTS | 25 | 920 | 195891200 | ||
195728768 | XxX_skimono_XxX | F | March 2, 2023, 7:59 p.m. | OK | MS C++ 2017 | TESTS | 25 | 998 | 195891200 | ||
195744953 | franklidev | F | March 3, 2023, 1:12 a.m. | OK | Node.js | TESTS | 32 | 919 | 66457600 | ||
195760394 | bvf | F | March 3, 2023, 5:36 a.m. | OK | PyPy 3 | TESTS | 32 | 686 | 53043200 | ||
195758229 | broshen | F | March 3, 2023, 5:10 a.m. | OK | PyPy 3 | TESTS | 32 | 3462 | 173875200 | ||
195751614 | 2333_ | F | March 3, 2023, 3:28 a.m. | OK | PyPy 3-64 | TESTS | 32 | 639 | 90419200 | ||
195750830 | 2333_ | F | March 3, 2023, 3:14 a.m. | OK | PyPy 3-64 | TESTS | 32 | 654 | 90419200 | ||
195733131 | Rosiwerk | F | March 2, 2023, 8:55 p.m. | OK | PyPy 3-64 | TESTS | 25 | 701 | 63795200 | ||
195723600 | SophieHatter | F | March 2, 2023, 7:09 p.m. | OK | PyPy 3-64 | TESTS | 25 | 795 | 54169600 | ||
195734666 | SoleProprietor | F | March 2, 2023, 9:19 p.m. | OK | PyPy 3-64 | TESTS | 25 | 826 | 46284800 | ||
195739910 | RobinFromTheHood | F | March 2, 2023, 11:08 p.m. | OK | PyPy 3-64 | TESTS | 25 | 826 | 46796800 | ||
195742761 | Quick-One | F | March 3, 2023, 12:23 a.m. | OK | PyPy 3-64 | TESTS | 25 | 998 | 61337600 | ||
195725431 | FlakeLCR | F | March 2, 2023, 7:26 p.m. | OK | PyPy 3-64 | TESTS | 25 | 1200 | 157286400 | ||
195734260 | SoleProprietor | F | March 2, 2023, 9:12 p.m. | OK | PyPy 3-64 | TESTS | 25 | 1201 | 51814400 | ||
195742794 | Quick-One | F | March 3, 2023, 12:23 a.m. | OK | PyPy 3-64 | TESTS | 25 | 1403 | 75059200 | ||
195714821 | God_Man | F | March 2, 2023, 5:58 p.m. | OK | Rust 2021 | TESTS | 25 | 358 | 85708800 | ||
195714695 | God_Man | F | March 2, 2023, 5:57 p.m. | OK | Rust 2021 | TESTS | 25 | 389 | 85606400 |
Back to search problems