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 |
|---|---|---|---|---|---|---|
| 2052 | 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 42157523 | Dec. 15, 2024, 7:35 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1538 ) | J | Judicious Watching | PROGRAMMING | binary search greedy |
Jill loves having good grades in university, so she never misses deadlines for her homework assignments. But even more, she loves watching the series and discussing it with her best friend Johnny. And unfortunately, today she needs to choose between these two activities! Jill needs to complete (n) homework tasks. The (i)-th task would require (a_i) minutes to complete and needs to be submitted to the teacher at most (d_i) minutes from now. Also, there are (m) new episodes of the series that Johnny and Jill want to discuss. The (j)-th episode lasts (l_j) minutes. Jill can complete tasks in any order, but she needs to watch the episodes in the order they come. Neither completing a homework task nor watching an episode can be interrupted after starting. Johnny and Jill need to agree on a time (t_k) when they would have a call to discuss the series. They are not sure yet which time to choose. For each possible time, compute the maximum number of episodes Jill could watch before that time while still being able to complete all (n) homework tasks in time. Note that for the purpose of this problem we assume that discussing the series with Johnny at time (t_k) does not consume significant time from Jill and can happen even if she is in the middle of completing any of her homework tasks . There are several test cases in the input. The input begins with the number of test cases (T) ((1 \le T \le 1\,000)). Each test case starts with a line with three integers (n) ((1 \le n \le 200\,000)) — the number of homework tasks, (m) ((1 \le m \le 200\,000)) — the number of episodes, and (q) ((1 \le q \le 200\,000)) — the number of possible times for the call with Jill. The second line contains (n) integers (a_i) ((1 \le a_i \le 10^9)) — the number of minutes it takes to complete the task. The next line contains (n) integers (d_i) ((1 \le d_i \le 10^{15})) — the deadline before which |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 296553281 | Bronya_H zrnstnsr __baozii__ | J | Dec. 15, 2024, 10:33 a.m. | OK | C# 10 | TESTS | 39 | 639 | 30822400 | ||
| 296560284 | Auto_Waala | J | Dec. 15, 2024, 11:42 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 312 | 9113600 | ||
| 296538015 | yellowtoad Angus_Yeung fire_water | J | Dec. 15, 2024, 9 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 327 | 6451200 | ||
| 296558193 | Teamangay mounteverest2004 Spad2e | J | Dec. 15, 2024, 11:23 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 343 | 4812800 | ||
| 296557073 | Messi | J | Dec. 15, 2024, 11:12 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 343 | 5939200 | ||
| 296543252 | Muqeeth7 Raju_3 LittleMoon | J | Dec. 15, 2024, 9:34 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 343 | 9216000 | ||
| 296544223 | 7ms Yufi1210 | J | Dec. 15, 2024, 9:44 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 343 | 9625600 | ||
| 296564636 | d99641705 | J | Dec. 15, 2024, 12:22 p.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 343 | 9932800 | ||
| 296552684 | codeblooded20 sumeet_24 ajaybgunjal | J | Dec. 15, 2024, 10:27 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 358 | 9216000 | ||
| 296581164 | DesLightYT | J | Dec. 15, 2024, 2:23 p.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 374 | 9113600 | ||
| 296539996 | JKadirov Sirojiddin CPython.uz | J | Dec. 15, 2024, 9:18 a.m. | OK | C++17 (GCC 7-32) | TESTS | 39 | 390 | 4403200 | ||
| 296582434 | maspy | J | Dec. 15, 2024, 2:33 p.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 187 | 13414400 | ||
| 296539003 | Irmuun.Ch | J | Dec. 15, 2024, 9:09 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 233 | 6963200 | ||
| 296533793 | Gheal | J | Dec. 15, 2024, 8:33 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 233 | 20070400 | ||
| 296544835 | Mousa_Aboubaker Albara_Abdulhafith | J | Dec. 15, 2024, 9:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 234 | 9420800 | ||
| 296524526 | feeder1 HuaJun limanjun | J | Dec. 15, 2024, 7:59 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 234 | 10956800 | ||
| 296533852 | arnold518 YeongTree Karuna | J | Dec. 15, 2024, 8:33 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 249 | 5836800 | ||
| 296542571 | Divine_Spark | J | Dec. 15, 2024, 9:28 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 249 | 7987200 | ||
| 296571098 | ZhockDen | J | Dec. 15, 2024, 12:53 p.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 249 | 8601600 | ||
| 296568658 | weirdflexbutok | J | Dec. 15, 2024, 12:32 p.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 249 | 10444800 | ||
| 296536804 | snokes lotusblume paultristanwagner | J | Dec. 15, 2024, 8:49 a.m. | OK | C++20 (GCC 13-64) | TESTS | 39 | 249 | 10956800 | ||
| 296773851 | pshenikita | J | Dec. 15, 2024, 9:48 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 233 | 6041600 | ||
| 296564422 | Vaibhav_patel meetsarvan Dip_Baldha | J | Dec. 15, 2024, 12:20 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 234 | 17715200 | ||
| 296558427 | lcyxds shleodai | J | Dec. 15, 2024, 11:25 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 249 | 5632000 | ||
| 296563445 | bottoms__up baklipiku brave-kid | J | Dec. 15, 2024, 12:11 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 249 | 7884800 | ||
| 296771389 | aryan12 | J | Dec. 15, 2024, 8:56 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 249 | 8704000 | ||
| 296553617 | nik1998 FelixArg | J | Dec. 15, 2024, 10:37 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 249 | 19046400 | ||
| 296557123 | Dulustan | J | Dec. 15, 2024, 11:13 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 265 | 6041600 | ||
| 296564178 | Abhi0809 adnanahmad HoneyGupta | J | Dec. 15, 2024, 12:17 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 265 | 10854400 | ||
| 296542127 | Mohanad_Nahhal FzArK | J | Dec. 15, 2024, 9:23 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 265 | 10854400 | ||
| 296545172 | magnified HollwoQ_Pelw TrungNotChung | J | Dec. 15, 2024, 9:54 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 39 | 265 | 11878400 | ||
| 296560758 | Schmoov Haksell | J | Dec. 15, 2024, 11:46 a.m. | OK | PyPy 3-64 | TESTS | 39 | 859 | 67584000 | ||
| 296533791 | tranquility nikgaevoy Kaban-5 | J | Dec. 15, 2024, 8:33 a.m. | OK | Rust 2021 | TESTS | 39 | 265 | 28672000 | ||
| 296552295 | freak93 | J | Dec. 15, 2024, 10:23 a.m. | OK | Rust 2021 | TESTS | 39 | 280 | 28364800 | ||
| 296567760 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567745 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567698 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567697 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567687 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567668 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567656 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567634 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567515 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 296567499 | J | Dec. 15, 2024, 12:24 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 |
Back to search problems