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 |
---|---|---|---|---|---|---|
1949 | European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 20548799 | March 24, 2024, 10 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 406 ) | D | Funny or Scary? | PROGRAMMING | constructive algorithms |
B'You are designing a new video game. It has n scenarios, which the player may play in any order, but each scenario must be played exactly once. When a player switches from a scenario to another scenario, the game shows a specially crafted transition video to make it all feel part of one big story. This video is specific to a pair of scenarios, but not to their order, in other words, the video playing when switching from scenario a to scenario b is the same as the video playing when switching from scenario b to scenario a . Therefore, you need to create frac{n(n-1)}{2} different transition videos, one for each possible pair of different scenarios. Each transition video can be either funny or scary. It is boring to see too many funny videos or too many scary videos in a row. Therefore, your goal is to create the videos in such a way that no matter in which order does the player approach the scenarios, they will never see more than lceil frac{3n}{4} rceil transition videos of the same type in a row. You have already come up with ideas for at most lfloor frac{n}{2} rfloor of the transition videos, and therefore already know if those will be funny or scary. Now you need to choose funny or scary for all other transition videos in such a way that the above requirement is satisfied. The first line contains a single integer n ( 2 <= n <= 24 ) -- the number of scenarios in the game. The next n lines describe the partial transition video plan. Each of those lines contains n characters. The j -th character of the i -th line corresponds to the transition video between the i -th and the j -th scenarios. It will be F if the corresponding transition video will be funny, S if the corresponding transition video will be scary, ? if the corresponding transition video is still undecided, or . if i=j . It is guaranteed that the i -th character of the j -th line an'... |
European Championship 2024 (EUC) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
253102267 | LYYY Youhezhen sunzhihong | D | March 24, 2024, 2:58 p.m. | OK | C++14 (GCC 6-32) | TESTS | 81 | 15 | 204800 | ||
253074997 | ImmortaLimit StarSilk Su_Zipei | D | March 24, 2024, 11:35 a.m. | OK | C++14 (GCC 6-32) | TESTS | 81 | 31 | 307200 | ||
253091508 | WongChun1234 fire_water __jk__ | D | March 24, 2024, 1:40 p.m. | OK | C++14 (GCC 6-32) | TESTS | 81 | 78 | 0 | ||
253086906 | hzt1 Marco_L_T stan23456 | D | March 24, 2024, 1:06 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 0 | ||
253082178 | Deep_Kevin gmh77 2018LZY | D | March 24, 2024, 12:31 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 0 | ||
253142091 | Lalic defnotmee leanchec | D | March 24, 2024, 10:11 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 102400 | ||
253127561 | zeemanz | D | March 24, 2024, 7:05 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 102400 | ||
253099554 | nvmdava JettyOller jefrai | D | March 24, 2024, 2:39 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 102400 | ||
253099097 | misteg168 BernatP Esomer | D | March 24, 2024, 2:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 102400 | ||
253083800 | zidder _LeMur_ | D | March 24, 2024, 12:43 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 102400 | ||
253096521 | MaksymOboznyi Meijer early-morning-dreams | D | March 24, 2024, 2:18 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 204800 | ||
253077386 | Handsome2004 | D | March 24, 2024, 11:53 a.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 204800 | ||
253132829 | Eran kokokostya platypus179 | D | March 24, 2024, 8:03 p.m. | OK | C++17 (GCC 7-32) | TESTS | 81 | 15 | 307200 | ||
253153904 | ship2077 | D | March 25, 2024, 3:06 a.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 15 | 0 | ||
253142420 | LUL____SEPLED1305 Subconscious RobeZH | D | March 24, 2024, 10:18 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 15 | 0 | ||
253091154 | mo_onrabbit2 Worteltje Retro3014 | D | March 24, 2024, 1:38 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 15 | 0 | ||
253090396 | Sugar_fan | D | March 24, 2024, 1:32 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 15 | 0 | ||
253087441 | Netr xXx_KevinDu58_xXx | D | March 24, 2024, 1:10 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 15 | 0 | ||
253146128 | TheScrasse | D | March 24, 2024, 11:45 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 30 | 0 | ||
253080255 | Tikhon228 Pechalka Kapt | D | March 24, 2024, 12:16 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 30 | 0 | ||
253095361 | CHYYYY Danncla Yoshinow2001 | D | March 24, 2024, 2:09 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 31 | 1740800 | ||
253144752 | N_z__ | D | March 24, 2024, 11:11 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 31 | 67276800 | ||
253101858 | oleh1421 OliaVolia | D | March 24, 2024, 2:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 81 | 62 | 0 | ||
253138349 | conqueror_of_tourist amsraman int_jim | D | March 24, 2024, 9:11 p.m. | OK | PyPy 3-64 | TESTS | 81 | 109 | 5529600 |
Back to search problems