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 |
---|---|---|---|---|---|---|
1737 | Dytechlab Cup 2022 | FINISHED | False | 9000 | 72026663 | Oct. 7, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 118 ) | G | Ela Takes Dancing Class | PROGRAMMING | binary search binary search data structures |
B'DTL engineers love partying in the weekend. Ela does, too! Unfortunately, she didn 't know how to dance yet. Therefore, she decided to take a dancing class. There are n students in the dancing class, including Ela. In the final project, n students will participate in a choreography described below. n students are positioned on the positive side of the Ox -axis. The i -th dancer is located at a_i > 0 . Some dancers will change positions during the dance (we 'll call them movable dancers), and others will stay in the same place during a choreography (we 'll call them immovable dancers). We distinguish the dancers using a binary string s of length n : if s_i equals '1 ', then the i -th dancer is movable, otherwise the i -th dancer is immovable. Let 's call the "positive energy value" of the choreography d > 0 . The dancers will perform "movements" based on this value. Each minute after the dance begins, the movable dancer with the smallest x -coordinate will start moving to the right and initiate a "movement". At the beginning of the movement, the dancer 's energy level will be initiated equally to the positive energy value of the choreography, which is d . Each time they move from some y to y+1 , the energy level will be decreased by 1 . At some point, the dancer might meet other fellow dancers in the same coordinates. If it happens, then the energy level of the dancer will be increased by 1 . A dancer will stop moving to the right when his energy level reaches 0 , and he doesn 't share a position with another dancer. The dancers are very well-trained, and each "movement" will end before the next minute begins. To show her understanding of this choreography, Ela has to answer q queries, each consisting of two integers k and m . The answer to this query is the coordinate of the m -th dancer of both types from the left at k -th minute after '... |
Editorial of Dytechlab Cup 2022 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
175026101 | inaFSTream | G | Oct. 7, 2022, 4:53 p.m. | OK | GNU C++14 | TESTS | 55 | 1512 | 7475200 | ||
175061586 | magnified | G | Oct. 8, 2022, 1 a.m. | OK | GNU C++17 | TESTS | 55 | 1247 | 8704000 | ||
175054239 | Benq | G | Oct. 7, 2022, 9:24 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 686 | 27545600 | ||
175032925 | QAQAutoMaton | G | Oct. 7, 2022, 5:34 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 2246 | 14336000 | ||
175027760 | orzdevinwang | G | Oct. 7, 2022, 4:59 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 3416 | 77209600 | ||
175037024 | ecnerwala | G | Oct. 7, 2022, 6:03 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 296 | 9318400 | ||
175043108 | tourist | G | Oct. 7, 2022, 6:57 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 327 | 11264000 | ||
175043033 | tourist | G | Oct. 7, 2022, 6:57 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 327 | 11264000 | ||
175043607 | tourist | G | Oct. 7, 2022, 7:03 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 343 | 11264000 | ||
175031711 | ecnerwala | G | Oct. 7, 2022, 5:27 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 373 | 10035200 | ||
175042779 | tourist | G | Oct. 7, 2022, 6:54 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 405 | 11264000 | ||
175042300 | tourist | G | Oct. 7, 2022, 6:49 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 576 | 11264000 | ||
175042371 | tourist | G | Oct. 7, 2022, 6:50 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 592 | 11264000 | ||
175023666 | ksun48 | G | Oct. 7, 2022, 4:44 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 764 | 11468800 | ||
175041448 | tourist | G | Oct. 7, 2022, 6:41 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 811 | 12390400 |
Back to search problems