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 |
---|---|---|---|---|---|---|
1866 | COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 43437263 | Sept. 3, 2023, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1691 ) | H | Happy Sets | PROGRAMMING | combinatorics |
B"Define a set A as a child of set B if and only if for each element of value x that is in A , there exists an element of value x+1 that is in B . Given integers N and K . In order to make Chaneka happy, you must find the number of different arrays containing N sets [S_1, S_2, S_3, ldots, S_N] such that: - Each set can only contain zero or more different integers from 1 to K . - There exists a way to rearrange the order of the array of sets into [S'_1, S'_2, S'_3, ldots, S'_N] such that S'_i is a child of S'_{i+1} for each 1 <= q i <= q N-1 . Print the answer modulo 998 ,244 ,353 . Two sets are considered different if and only if there is at least one value that only occurs in one of the two sets. Two arrays of sets are considered different if and only if there is at least one index i such that the sets at index i in the two arrays are different. The only line contains two integers N and K ( 1 <= q N,K <= q 2 cdot10^5 ) -- the number of sets in the array and the maximum limit for the values in the sets. An integer representing the number of different arrays of sets that satisfy the problem condition, modulo 998 ,244 ,353 . In the first example, there are 11 different arrays of sets possible, which are: "... |
COMPFEST 15 Preliminary — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
221692292 | slenbol XZC__Bobby leexzq | H | Sept. 3, 2023, 1:29 p.m. | OK | GNU C++14 | TESTS | 20 | 46 | 2457600 | ||
221763942 | User_Carrot | H | Sept. 4, 2023, 2:40 a.m. | OK | GNU C++14 | TESTS | 20 | 62 | 4812800 | ||
221698824 | 6737151 | H | Sept. 3, 2023, 2:02 p.m. | OK | GNU C++14 | TESTS | 20 | 62 | 4812800 | ||
221700636 | TrappedGhost guojiahao123 Tagigxo | H | Sept. 3, 2023, 2:12 p.m. | OK | GNU C++14 | TESTS | 20 | 62 | 7987200 | ||
221767134 | bkifhr10 | H | Sept. 4, 2023, 3:38 a.m. | OK | GNU C++14 | TESTS | 20 | 77 | 4812800 | ||
221765218 | Del_M | H | Sept. 4, 2023, 3:07 a.m. | OK | GNU C++14 | TESTS | 20 | 77 | 4812800 | ||
221712685 | shouxhy | H | Sept. 3, 2023, 3:24 p.m. | OK | GNU C++14 | TESTS | 20 | 78 | 2457600 | ||
221695932 | E-ray afuafu black_trees | H | Sept. 3, 2023, 1:47 p.m. | OK | GNU C++14 | TESTS | 20 | 78 | 4812800 | ||
221692246 | realskc User_Carrot N_z__ | H | Sept. 3, 2023, 1:29 p.m. | OK | GNU C++14 | TESTS | 20 | 78 | 4812800 | ||
221769484 | xzr1729 | H | Sept. 4, 2023, 4:18 a.m. | OK | GNU C++14 | TESTS | 20 | 78 | 7987200 | ||
221699093 | Xrite NeKpoT | H | Sept. 3, 2023, 2:04 p.m. | OK | GNU C++17 | TESTS | 20 | 62 | 3174400 | ||
221709736 | Abdullah010 Mantra7 sapta0506 | H | Sept. 3, 2023, 3:05 p.m. | OK | GNU C++17 | TESTS | 20 | 62 | 4812800 | ||
221708337 | ABalobanov | H | Sept. 3, 2023, 2:56 p.m. | OK | GNU C++17 | TESTS | 20 | 77 | 5632000 | ||
221734175 | jayantjha1109 | H | Sept. 3, 2023, 6:15 p.m. | OK | GNU C++17 | TESTS | 20 | 78 | 0 | ||
221765142 | Del_M | H | Sept. 4, 2023, 3:05 a.m. | OK | GNU C++17 | TESTS | 20 | 78 | 4812800 | ||
221696976 | K-H ttcwws CodingJellyfish | H | Sept. 3, 2023, 1:53 p.m. | OK | GNU C++17 | TESTS | 20 | 78 | 24064000 | ||
221704662 | ANASASASASAS-KHAN | H | Sept. 3, 2023, 2:34 p.m. | OK | GNU C++17 | TESTS | 20 | 93 | 1638400 | ||
221775100 | Pyqe | H | Sept. 4, 2023, 5:47 a.m. | OK | GNU C++17 | TESTS | 20 | 93 | 3174400 | ||
221695405 | dreami63 sk091204 plast | H | Sept. 3, 2023, 1:45 p.m. | OK | GNU C++17 | TESTS | 20 | 93 | 6451200 | ||
221738693 | sussy__baka | H | Sept. 3, 2023, 6:52 p.m. | OK | GNU C++17 | TESTS | 20 | 108 | 0 | ||
221709843 | like_a_dream | H | Sept. 3, 2023, 3:06 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 2457600 | ||
221700338 | like_a_dream | H | Sept. 3, 2023, 2:10 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 2457600 | ||
221721355 | arpeggio John_zyj hylhyl | H | Sept. 3, 2023, 4:26 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 3174400 | ||
221704857 | Venky99 kaustubhkaty EnEm | H | Sept. 3, 2023, 2:35 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 3174400 | ||
221692297 | yangjl | H | Sept. 3, 2023, 1:29 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 3174400 | ||
221775431 | destination | H | Sept. 4, 2023, 5:51 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 3276800 | ||
221701053 | abhinav4279 Orthofox Ragthi | H | Sept. 3, 2023, 2:14 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 3276800 | ||
221699363 | Lain brobat AdiAnand | H | Sept. 3, 2023, 2:05 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 4403200 | ||
221719205 | JvJv iNx saveNload | H | Sept. 3, 2023, 4:10 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1638400 | ||
221704577 | code_kaustubh Shubham-V Roshan18 | H | Sept. 3, 2023, 2:34 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1638400 | ||
221761443 | khongvaodcLQD2023 | H | Sept. 4, 2023, 1:40 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 0 | ||
221706367 | sia1024 armalko | H | Sept. 3, 2023, 2:44 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 0 | ||
221696760 | hopesanddreams | H | Sept. 3, 2023, 1:52 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 1638400 | ||
221696467 | clams ocortez BacHoCuuPikachu | H | Sept. 3, 2023, 1:50 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 1638400 | ||
221693004 | Nero | H | Sept. 3, 2023, 1:32 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 1638400 | ||
221692073 | AndreyPavlov T4M0FEY | H | Sept. 3, 2023, 1:28 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 1638400 | ||
221705420 | CDuongg Thanhs ahihi1234 | H | Sept. 3, 2023, 2:38 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 2355200 | ||
221765537 | rgnerdplayer | H | Sept. 4, 2023, 3:12 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 2457600 | ||
221702832 | yoy68 DitaMirika | H | Sept. 3, 2023, 2:24 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 2457600 | ||
221701621 | cpchenpi RustIsBestLang | H | Sept. 3, 2023, 2:17 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 2457600 | ||
221699497 | yvbf | H | Sept. 3, 2023, 2:06 p.m. | OK | Java 8 | TESTS | 20 | 529 | 0 | ||
221706390 | SPD_9X2 | H | Sept. 3, 2023, 2:44 p.m. | OK | PyPy 3 | TESTS | 20 | 436 | 28057600 | ||
221699476 | misorin | H | Sept. 3, 2023, 2:06 p.m. | OK | PyPy 3-64 | TESTS | 20 | 140 | 4198400 | ||
221725509 | stuck_at_iron1 ak.mpbf FOMOhNO666 | H | Sept. 3, 2023, 4:57 p.m. | OK | PyPy 3-64 | TESTS | 20 | 280 | 9932800 | ||
221773457 | Sai_Rohit-30021 | H | Sept. 4, 2023, 5:23 a.m. | OK | PyPy 3-64 | TESTS | 20 | 545 | 9318400 | ||
221697676 | fooker AKSLEGION781126 shorya1835 | H | Sept. 3, 2023, 1:56 p.m. | OK | PyPy 3-64 | TESTS | 20 | 577 | 9318400 | ||
221697979 | SiddhantAttavar | H | Sept. 3, 2023, 1:58 p.m. | OK | PyPy 3-64 | TESTS | 20 | 733 | 11059200 | ||
221712128 | nano_nish parthtotalfun Numinous | H | Sept. 3, 2023, 3:21 p.m. | OK | PyPy 3-64 | TESTS | 20 | 920 | 8806400 | ||
221704920 | sahilkumar_1 PROELECTRO444 targeter2004 | H | Sept. 3, 2023, 2:36 p.m. | OK | PyPy 3-64 | TESTS | 20 | 998 | 21606400 | ||
221706280 | andrey.m paletskih | H | Sept. 3, 2023, 2:44 p.m. | OK | Rust 2021 | TESTS | 20 | 108 | 2560000 |
Back to search problems