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 |
|---|---|---|---|---|---|---|
| 1916 | Good Bye 2023 | FINISHED | False | 7200 | 72457823 | Dec. 30, 2023, 2:50 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 707 ) | F | Group Division | PROGRAMMING | constructive algorithms dfs and similar graphs |
In the (31)st lyceum, there were two groups of olympiad participants: computer science and mathematics. The number of computer scientists was (n_1), and the number of mathematicians was (n_2). It is not known for certain who belonged to which group, but it is known that there were friendly connections between some pairs of people (these connections could exist between a pair of people from the same group or from different groups). The connections were so strong that even if one person is removed along with all their friendly connections, any pair of people still remains acquainted either directly or through mutual friends. (^{\dagger}) More formally, two people ((x, y)) are acquainted in the following case: there are people (a_1, a_2, \ldots,a_n) ((1 \le a_i \le n_1 + n_2)) such that the following conditions are simultaneously met: (\bullet) Person (x) is directly acquainted with (a_1). (\bullet) Person (a_n) is directly acquainted with (y). (\bullet) Person (a_i) is directly acquainted with (a_{i + 1}) for any ((1 \le i \le n - 1)). The teachers were dissatisfied with the fact that computer scientists were friends with mathematicians and vice versa, so they decided to divide the students into two groups in such a way that the following two conditions are met: (\bullet) There were (n_1) people in the computer science group, and (n_2) people in the mathematics group. (\bullet) Any pair of computer scientists should be acquainted (acquaintance involving mutual friends, who must be from the same group as the people in the pair, is allowed), the same should be true for mathematicians. Help them solve this problem and find out who belongs to which group. Each test consists of several test cases. The first line contains a single integer (t) ((1 \le t \le 1000)) — the number of test cases. Then follows the description of the test cases. The first line of each test case con |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 239737285 | Kuroni | F | Dec. 30, 2023, 10:31 p.m. | OK | Clang++20 Diagnostics | TESTS | 36 | 78 | 10137600 | ||
| 239732759 | rainboy | F | Dec. 30, 2023, 8:59 p.m. | OK | GNU C11 | TESTS | 36 | 93 | 614400 | ||
| 239747558 | xukai | F | Dec. 31, 2023, 3:06 a.m. | OK | GNU C++14 | TESTS | 38 | 46 | 135475200 | ||
| 239748612 | leihonglongyin | F | Dec. 31, 2023, 3:25 a.m. | OK | GNU C++14 | TESTS | 38 | 77 | 307200 | ||
| 239710411 | jinqihao2026 | F | Dec. 30, 2023, 4:41 p.m. | OK | GNU C++14 | TESTS | 36 | 78 | 614400 | ||
| 239713390 | RegenFallen | F | Dec. 30, 2023, 4:47 p.m. | OK | GNU C++14 | TESTS | 36 | 78 | 102604800 | ||
| 239747051 | zwh2008 | F | Dec. 31, 2023, 2:56 a.m. | OK | GNU C++14 | TESTS | 38 | 93 | 8806400 | ||
| 239712102 | Iratis | F | Dec. 30, 2023, 4:45 p.m. | OK | GNU C++14 | TESTS | 36 | 140 | 1126400 | ||
| 239749317 | hayley17 | F | Dec. 31, 2023, 3:37 a.m. | OK | GNU C++17 | TESTS | 38 | 15 | 1228800 | ||
| 239710283 | IBory | F | Dec. 30, 2023, 4:41 p.m. | OK | GNU C++17 | TESTS | 36 | 30 | 307200 | ||
| 239728466 | sarun061729 | F | Dec. 30, 2023, 7:58 p.m. | OK | GNU C++17 | TESTS | 36 | 31 | 512000 | ||
| 239728739 | Shlock | F | Dec. 30, 2023, 8:01 p.m. | OK | GNU C++17 | TESTS | 36 | 78 | 4096000 | ||
| 239737221 | patou | F | Dec. 30, 2023, 10:30 p.m. | OK | GNU C++17 | TESTS | 36 | 108 | 614400 | ||
| 239714642 | kes0716 | F | Dec. 30, 2023, 4:49 p.m. | OK | GNU C++17 | TESTS | 36 | 124 | 512000 | ||
| 239707221 | alexander707070 | F | Dec. 30, 2023, 4:35 p.m. | OK | GNU C++17 | TESTS | 36 | 483 | 16384000 | ||
| 239715248 | Geothermal | F | Dec. 30, 2023, 4:49 p.m. | OK | GNU C++17 (64) | TESTS | 36 | 15 | 512000 | ||
| 239713123 | luanmenglei | F | Dec. 30, 2023, 4:46 p.m. | OK | GNU C++17 (64) | TESTS | 36 | 15 | 819200 | ||
| 239710201 | cxm1024 | F | Dec. 30, 2023, 4:41 p.m. | OK | GNU C++17 (64) | TESTS | 36 | 31 | 409600 | ||
| 239750180 | chappy1 | F | Dec. 31, 2023, 3:53 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 46 | 409600 | ||
| 239725207 | eriksuenderhauf | F | Dec. 30, 2023, 7:29 p.m. | OK | GNU C++17 (64) | TESTS | 36 | 61 | 92672000 | ||
| 239711848 | dlalswp25 | F | Dec. 30, 2023, 4:44 p.m. | OK | GNU C++17 (64) | TESTS | 36 | 62 | 614400 | ||
| 239745411 | -Eternity- | F | Dec. 31, 2023, 2:21 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 77 | 112742400 | ||
| 239737460 | trainwithoutpain | F | Dec. 30, 2023, 10:36 p.m. | OK | GNU C++17 (64) | TESTS | 37 | 124 | 716800 | ||
| 239741218 | hitonanode | F | Dec. 31, 2023, 12:21 a.m. | OK | GNU C++17 (64) | TESTS | 37 | 888 | 1433600 | ||
| 239725089 | frodakcin | F | Dec. 30, 2023, 7:29 p.m. | OK | GNU C++20 (64) | TESTS | 36 | 15 | 204800 | ||
| 239714598 | wyrqwq | F | Dec. 30, 2023, 4:49 p.m. | OK | GNU C++20 (64) | TESTS | 36 | 15 | 204800 | ||
| 239711958 | Clein.qwq | F | Dec. 30, 2023, 4:44 p.m. | OK | GNU C++20 (64) | TESTS | 36 | 15 | 204800 | ||
| 239723307 | lightseba | F | Dec. 30, 2023, 7:12 p.m. | OK | GNU C++20 (64) | TESTS | 36 | 15 | 512000 | ||
| 239753764 | SSerxhs | F | Dec. 31, 2023, 4:55 a.m. | OK | GNU C++20 (64) | TESTS | 38 | 15 | 512000 | ||
| 239753730 | SSerxhs | F | Dec. 31, 2023, 4:55 a.m. | OK | GNU C++20 (64) | TESTS | 38 | 15 | 512000 | ||
| 239751044 | null_awe | F | Dec. 31, 2023, 4:09 a.m. | OK | GNU C++20 (64) | TESTS | 38 | 15 | 512000 | ||
| 239738326 | ecnerwala | F | Dec. 30, 2023, 11:03 p.m. | OK | GNU C++20 (64) | TESTS | 37 | 15 | 614400 | ||
| 239737816 | Kuroni | F | Dec. 30, 2023, 10:48 p.m. | OK | GNU C++20 (64) | TESTS | 37 | 15 | 614400 | ||
| 239741602 | ecnerwala | F | Dec. 31, 2023, 12:33 a.m. | OK | GNU C++20 (64) | TESTS | 37 | 15 | 614400 | ||
| 239746087 | arvindf232 | F | Dec. 31, 2023, 2:35 a.m. | OK | Kotlin 1.6 | TESTS | 38 | 577 | 1228800 | ||
| 239745972 | top73only | F | Dec. 31, 2023, 2:32 a.m. | OK | Kotlin 1.6 | TESTS | 38 | 577 | 1228800 | ||
| 239736802 | qwerty787788 | F | Dec. 30, 2023, 10:20 p.m. | OK | Rust 2021 | TESTS | 36 | 15 | 614400 | ||
| 239736756 | qwerty787788 | F | Dec. 30, 2023, 10:18 p.m. | OK | Rust 2021 | TESTS | 36 | 31 | 614400 |
Back to search problems