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 |
|---|---|---|---|---|---|---|
| 2046 | Codeforces Round 990 (Div. 1) | FINISHED | False | 7200 | 43198523 | Dec. 3, 2024, 6:25 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 228 ) | E1 | Cheops and a Contest (Easy Version) | PROGRAMMING | constructive algorithms greedy |
This is the easy version of the problem. The difference between the versions is that in this version, (m) equals (2). You can hack only if you solved all versions of this problem. There is a problem-solving competition in Ancient Egypt with (n) participants, numbered from (1) to (n). Each participant comes from a certain city; the cities are numbered from (1) to (m). There is at least one participant from each city. The (i)-th participant has strength (a_i), specialization (s_i), and wisdom (b_i), so that (b_i \ge a_i). Each problem in the competition will have a difficulty (d) and a unique topic (t). The (i)-th participant will solve the problem if (a_i \ge d), i.e., their strength is not less than the problem's difficulty, or (s_i = t), and (b_i \ge d), i.e., their specialization matches the problem's topic, and their wisdom is not less than the problem's difficulty. Cheops wants to choose the problems in such a way that each participant from city (i) will solve strictly more problems than each participant from city (j), for all (i < j). Please find a set of at most (5n) problems, where the topics of all problems are distinct , so that Cheops' will is satisfied, or state that it is impossible. Each test contains multiple test cases. The first line contains the number of test cases (T) ((1 \le T \le 10^4)). The description of the test cases follows. The first line of each test case contains two integers (n), (m) ((2 \mathbf{=} m \le n \le 3 \cdot {10}^5)) — the number of participants and the number of cities. The following (n) lines describe the participants. The (i)-th line contains three integers —(a_i), (b_i), (s_i) ((0 \le a_i, b_i, s_i \le {10}^9), (a_i \le b_i)) — strength, wisdom, and specialization of the (i)-th participant, respectively. The next (m) lines describe the cities. In the (i)-th line, the |
| Разбор Codeforces Round 990 (Div. 2 + Div. 1) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 294712248 | gs20036 | E1 | Dec. 4, 2024, 4:02 a.m. | OK | C++17 (GCC 7-32) | TESTS | 36 | 671 | 31027200 | ||
| 294633248 | jonathanirvings | E1 | Dec. 3, 2024, 2:07 p.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 686 | 25907200 | ||
| 294583490 | numberdude | E1 | Dec. 3, 2024, 8:19 a.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 937 | 36454400 | ||
| 294609733 | leukocyte | E1 | Dec. 3, 2024, 11:58 a.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 952 | 21094400 | ||
| 294621815 | DeadlyCritic | E1 | Dec. 3, 2024, 1:05 p.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 1171 | 71168000 | ||
| 294661601 | AdhityaMangudy | E1 | Dec. 3, 2024, 5 p.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 1233 | 89395200 | ||
| 294677462 | joelgun14 | E1 | Dec. 3, 2024, 6:55 p.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 1234 | 34099200 | ||
| 294684051 | uwu | E1 | Dec. 3, 2024, 8:01 p.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 1390 | 120422400 | ||
| 294582098 | Andreasyan | E1 | Dec. 3, 2024, 8:15 a.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 1859 | 98406400 | ||
| 294582992 | Alex2184 | E1 | Dec. 3, 2024, 8:17 a.m. | OK | C++17 (GCC 7-32) | TESTS | 33 | 2405 | 37580800 | ||
| 294579354 | Xellos | E1 | Dec. 3, 2024, 8:06 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 312 | 11980800 | ||
| 294565503 | Zanite | E1 | Dec. 3, 2024, 7:29 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 530 | 26214400 | ||
| 294582615 | pooty | E1 | Dec. 3, 2024, 8:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 624 | 48947200 | ||
| 294700858 | DanielChang | E1 | Dec. 4, 2024, 1 a.m. | OK | C++20 (GCC 13-64) | TESTS | 35 | 639 | 28569600 | ||
| 294605669 | Anonymous_Noob | E1 | Dec. 3, 2024, 11:34 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 639 | 31539200 | ||
| 294575752 | noimi | E1 | Dec. 3, 2024, 7:55 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 671 | 19558400 | ||
| 294628781 | jeroenodb | E1 | Dec. 3, 2024, 1:42 p.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 702 | 28672000 | ||
| 294583610 | Yam | E1 | Dec. 3, 2024, 8:19 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 702 | 40652800 | ||
| 294583680 | DanielChang | E1 | Dec. 3, 2024, 8:20 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 733 | 28569600 | ||
| 294579930 | matchalover | E1 | Dec. 3, 2024, 8:08 a.m. | OK | C++20 (GCC 13-64) | TESTS | 33 | 796 | 47718400 | ||
| 294582248 | risujiroh | E1 | Dec. 3, 2024, 8:15 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 655 | 14438400 | ||
| 294701538 | kevin | E1 | Dec. 4, 2024, 1:18 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 36 | 687 | 36249600 | ||
| 294630064 | Akulyat | E1 | Dec. 3, 2024, 1:49 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 890 | 114585600 | ||
| 294613948 | SomethingNew | E1 | Dec. 3, 2024, 12:22 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 905 | 33894400 | ||
| 294613380 | meowcneil | E1 | Dec. 3, 2024, 12:18 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 952 | 64409600 | ||
| 294583050 | IceKnight1093 | E1 | Dec. 3, 2024, 8:18 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 1031 | 62566400 | ||
| 294638272 | Ari | E1 | Dec. 3, 2024, 2:34 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 1046 | 66764800 | ||
| 294657085 | NinjaDoggy | E1 | Dec. 3, 2024, 4:30 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 1077 | 108236800 | ||
| 294689704 | peti1234 | E1 | Dec. 3, 2024, 9:02 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 1093 | 31539200 | ||
| 294611771 | meowcneil | E1 | Dec. 3, 2024, 12:10 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 33 | 1093 | 115916800 |
Back to search problems