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 |
|---|---|---|---|---|---|---|
| 1250 | 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 204323084 | Oct. 27, 2019, 9:35 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 216 ) | D | Conference Problem | PROGRAMMING | dp | 3100 |
A large-scale conference on unnatural sciences is going to be held soon in Berland! In total, (n) scientists from all around the world have applied. All of them have indicated a time segment when they will attend the conference: two integers (l_i), (r_i) — day of arrival and day of departure. Also, some of the scientists have indicated their country, while some preferred not to. So, each scientist also has a value (c_i), where: (c_i > 0), if the scientist is coming from country (c_i) (all countries are numbered from (1) to (200)); (c_i = 0), if the scientist preferred to not indicate the country. Everyone knows that it is interesting and useful to chat with representatives of other countries! A participant of the conference will be upset if she will not meet people from other countries during the stay. It is possible to meet people during all time of stay, including the day of arrival and the day of departure. Conference organizers need to be ready for the worst! They are interested in the largest number (x), that it is possible that among all people attending the conference exactly (x) will be upset. Help the organizers to find the maximum number of upset scientists. The first line of the input contains integer (t) ((1 \le t \le 100)) — number of test cases. Then the test cases follow. The first line of each test case contains integer (n) ((1 \le n \le 500)) — the number of registered conference participants. Next (n) lines follow, each containing three integers (l_i), (r_i), (c_i) ((1 \le l_i \le r_i \le 10^6), (0 \le c_i \le 200)) — the day of arrival, the day of departure and the country (or the fact that it was not indicated) for the (i)-th participant. The sum of (n) among all test cases in the input does not exceed (500). Output (t) integers — maximum number of upset scientists for each test case. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 64068923 | XLor | D | Nov. 2, 2019, 6:45 a.m. | OK | GNU C++11 | TESTS | 90 | 31 | 2662400 | 3100 | |
| 63846839 | vjudge3 | D | Oct. 30, 2019, 3 p.m. | OK | GNU C++11 | TESTS | 90 | 46 | 1024000 | 3100 | |
| 64311398 | danya090699 | D | Nov. 5, 2019, 12:52 p.m. | OK | GNU C++11 | TESTS | 90 | 61 | 2867200 | 3100 | |
| 65607835 | ennik_somi | D | Nov. 23, 2019, 10:05 p.m. | OK | GNU C++11 | TESTS | 90 | 93 | 3276800 | 3100 | |
| 63644928 | HanwhaEagles | D | Oct. 28, 2019, 9:21 a.m. | OK | GNU C++11 | TESTS | 90 | 109 | 6656000 | 3100 | |
| 66524286 | WZYYN | D | Dec. 9, 2019, 3:06 a.m. | OK | GNU C++11 | TESTS | 90 | 405 | 2560000 | 3100 | |
| 63561289 | panole zx2003 | D | Oct. 27, 2019, 2:20 p.m. | OK | GNU C++11 | TESTS | 90 | 811 | 3481600 | 3100 | |
| 64342366 | NoTeamName | D | Nov. 6, 2019, 3:48 a.m. | OK | GNU C++14 | TESTS | 90 | 78 | 2867200 | 3100 | |
| 64342436 | NoTeamName | D | Nov. 6, 2019, 3:51 a.m. | OK | GNU C++14 | TESTS | 90 | 93 | 409600 | 3100 | |
| 65674324 | Light Hiasat Motarack | D | Nov. 24, 2019, 5:19 p.m. | OK | GNU C++14 | TESTS | 90 | 93 | 1638400 | 3100 | |
| 66650769 | upobir | D | Dec. 11, 2019, 6:58 p.m. | OK | GNU C++14 | TESTS | 90 | 93 | 1843200 | 3100 | |
| 64190245 | chenjb | D | Nov. 4, 2019, 7:25 a.m. | OK | GNU C++14 | TESTS | 90 | 93 | 4915200 | 3100 | |
| 64525197 | ItIsNotForRating | D | Nov. 8, 2019, 1:35 p.m. | OK | GNU C++14 | TESTS | 90 | 109 | 3481600 | 3100 | |
| 63850730 | oipotato | D | Oct. 30, 2019, 3:39 p.m. | OK | GNU C++14 | TESTS | 90 | 109 | 4915200 | 3100 | |
| 64551794 | BSBandme | D | Nov. 9, 2019, 12:09 a.m. | OK | GNU C++14 | TESTS | 90 | 124 | 921600 | 3100 | |
| 63933332 | 21August | D | Oct. 31, 2019, 2:56 p.m. | OK | GNU C++14 | TESTS | 90 | 124 | 3481600 | 3100 | |
| 64859605 | gtrhetr mayaohua2003 | D | Nov. 14, 2019, 2:11 a.m. | OK | GNU C++14 | TESTS | 90 | 217 | 22937600 | 3100 | |
| 64097974 | zdolna_kaczka Miyukine _h_ | D | Nov. 2, 2019, 2:30 p.m. | OK | GNU C++17 | TESTS | 90 | 31 | 6246400 | 3100 | |
| 65423869 | gepardo kefaa2 ReD_AwHiLe | D | Nov. 20, 2019, 10:02 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 204390400 | 3100 | |
| 64352466 | aboluo2003 | D | Nov. 6, 2019, 8:56 a.m. | OK | GNU C++17 | TESTS | 90 | 62 | 0 | 3100 | |
| 64864936 | zhangqingqi | D | Nov. 14, 2019, 5:40 a.m. | OK | GNU C++17 | TESTS | 90 | 62 | 4198400 | 3100 | |
| 63667467 | dafeng | D | Oct. 28, 2019, 3:49 p.m. | OK | GNU C++17 | TESTS | 90 | 93 | 3481600 | 3100 | |
| 63937215 | mnbvmar Radewoosh | D | Oct. 31, 2019, 4:15 p.m. | OK | GNU C++17 | TESTS | 90 | 139 | 20480000 | 3100 | |
| 65448697 | krijgertje | D | Nov. 20, 2019, 5:04 p.m. | OK | GNU C++17 | TESTS | 90 | 140 | 1024000 | 3100 | |
| 63629721 | chenyeyuan | D | Oct. 28, 2019, 5:49 a.m. | OK | GNU C++17 | TESTS | 90 | 140 | 38297600 | 3100 | |
| 64320068 | mango_lassi | D | Nov. 5, 2019, 3:21 p.m. | OK | GNU C++17 | TESTS | 90 | 218 | 1331200 | 3100 | |
| 63938475 | I_love_chickpea xman1024 Juzek | D | Oct. 31, 2019, 4:42 p.m. | OK | GNU C++17 | TESTS | 90 | 295 | 307200 | 3100 | |
| 63540268 | D | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 3100 | ||
| 63539828 | D | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 3100 |
Back to search problems