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 |
---|---|---|---|---|---|---|
1070 | 2018-2019 ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 197502923 | Oct. 20, 2018, 8:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1401 ) | E | Getting Deals Done | PROGRAMMING | binary search data structures | 2300 |
B'Polycarp has a lot of work to do. Recently he has learned a new time management rule: "if a task takes five minutes or less, do it immediately". Polycarp likes the new rule, however he is not sure that five minutes is the optimal value. He supposes that this value d should be chosen based on existing task list. Polycarp has a list of n tasks to complete. The i -th task has difficulty p_i , i.e. it requires exactly p_i minutes to be done. Polycarp reads the tasks one by one from the first to the n -th. If a task difficulty is d or less, Polycarp starts the work on the task immediately. If a task difficulty is strictly greater than d , he will not do the task at all. It is not allowed to rearrange tasks in the list. Polycarp doesn 't spend any time for reading a task or skipping it. Polycarp has t minutes in total to complete maximum number of tasks. But he does not want to work all the time. He decides to make a break after each group of m consecutive tasks he was working on. The break should take the same amount of time as it was spent in total on completion of these m tasks. For example, if n=7 , p=[3, 1, 4, 1, 5, 9, 2] , d=3 and m=2 Polycarp works by the following schedule: Polycarp stops exactly after t minutes. If Polycarp started a task but has not finished it by that time, the task is not considered as completed. It is allowed to complete less than m tasks in the last group. Also Polycarp considers acceptable to have shorter break than needed after the last group of tasks or even not to have this break at all -- his working day is over and he will have enough time to rest anyway. Please help Polycarp to find such value d , which would allow him to complete maximum possible number of tasks in t minutes. The first line of the input contains single integer c ( 1 <= c <= 5 cdot 10^4 ) -- number of test cases. Then description of c'... |
Solution to problem M. Algoland and Berland of 2018-2019 ICPC, NEERC |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
53280470 | SovietPower | E | April 25, 2019, 11:44 a.m. | OK | GNU C++11 | TESTS | 102 | 46 | 2252800 | 2300 | |
44751219 | ReaLNero1 | E | Oct. 23, 2018, 8:02 p.m. | OK | GNU C++11 | TESTS | 102 | 46 | 3174400 | 2300 | |
44598982 | Light_Kiss | E | Oct. 20, 2018, 1:29 p.m. | OK | GNU C++11 | TESTS | 102 | 46 | 3174400 | 2300 | |
45007311 | vjudge4 | E | Oct. 28, 2018, 4:17 p.m. | OK | GNU C++11 | TESTS | 102 | 61 | 1638400 | 2300 | |
53280408 | SovietPower | E | April 25, 2019, 11:42 a.m. | OK | GNU C++11 | TESTS | 102 | 62 | 1433600 | 2300 | |
44924901 | Nson Lius rchehab | E | Oct. 26, 2018, 7:37 p.m. | OK | GNU C++11 | TESTS | 102 | 62 | 1638400 | 2300 | |
44728257 | YoungNeal | E | Oct. 23, 2018, 9:06 a.m. | OK | GNU C++11 | TESTS | 102 | 62 | 1638400 | 2300 | |
53280315 | SovietPower | E | April 25, 2019, 11:40 a.m. | OK | GNU C++11 | TESTS | 102 | 62 | 3072000 | 2300 | |
44717866 | _23333 | E | Oct. 23, 2018, 12:05 a.m. | OK | GNU C++11 | TESTS | 102 | 62 | 3174400 | 2300 | |
44585431 | cuizhuyefei Panole233 _Happy_New_Year_ | E | Oct. 20, 2018, 9:26 a.m. | OK | GNU C++11 | TESTS | 102 | 62 | 8089600 | 2300 | |
45167509 | Qinz sfiction | E | Nov. 1, 2018, 11:37 a.m. | OK | GNU C++14 | TESTS | 102 | 78 | 819200 | 2300 | |
44719902 | qb2008 | E | Oct. 23, 2018, 3:55 a.m. | OK | GNU C++14 | TESTS | 102 | 93 | 819200 | 2300 | |
45425932 | SharkMan | E | Nov. 7, 2018, 8:51 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
45424322 | AboGoda | E | Nov. 7, 2018, 7:27 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
45423353 | mohammedehab2002 | E | Nov. 7, 2018, 6:45 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
45109932 | -1- | E | Oct. 30, 2018, 5:58 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
44934172 | kjp4155 ainta molamola. | E | Oct. 27, 2018, 4:15 a.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
44925506 | CARLAO_BORRACHA arthurkomatsu | E | Oct. 26, 2018, 7:54 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
44661932 | n_dao107 | E | Oct. 21, 2018, 3:40 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
44603494 | zeyunow | E | Oct. 20, 2018, 3:36 p.m. | OK | GNU C++14 | TESTS | 102 | 93 | 1638400 | 2300 | |
44595457 | F.J | E | Oct. 20, 2018, 12:23 p.m. | OK | GNU C++17 | TESTS | 102 | 46 | 4403200 | 2300 | |
44840228 | IgorSmirnov | E | Oct. 25, 2018, 12:30 p.m. | OK | GNU C++17 | TESTS | 102 | 62 | 3481600 | 2300 | |
44764749 | congmingyige | E | Oct. 24, 2018, 9:10 a.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1024000 | 2300 | |
44617050 | dx007 | E | Oct. 21, 2018, 2:51 a.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1024000 | 2300 | |
44733625 | .o. alex9801 ko_osaga | E | Oct. 23, 2018, 11:51 a.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1126400 | 2300 | |
61726990 | monggo1995 | E | Oct. 2, 2019, 3:44 p.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1638400 | 2300 | |
49518725 | 3multid | E | Feb. 6, 2019, 6:10 a.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1843200 | 2300 | |
45334292 | Momentum | E | Nov. 5, 2018, 4:50 p.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1843200 | 2300 | |
45249208 | MagicWand | E | Nov. 3, 2018, 3:33 p.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1843200 | 2300 | |
44709373 | fzh0917 | E | Oct. 22, 2018, 6:10 p.m. | OK | GNU C++17 | TESTS | 102 | 93 | 1843200 | 2300 | |
44600278 | hulk_man | E | Oct. 20, 2018, 2:02 p.m. | OK | Java 8 | TESTS | 102 | 140 | 0 | 2300 | |
44727934 | ATSTNG Musin Aleksandr_Stark | E | Oct. 23, 2018, 8:56 a.m. | OK | Java 8 | TESTS | 102 | 155 | 0 | 2300 | |
44703547 | wadissimo | E | Oct. 22, 2018, 3:48 p.m. | OK | Java 8 | TESTS | 102 | 202 | 2048000 | 2300 | |
51367217 | mashinist | E | March 16, 2019, 10:15 a.m. | OK | Java 8 | TESTS | 102 | 202 | 2355200 | 2300 | |
44589003 | aviroop123 amnesiac_dusk ak_97 | E | Oct. 20, 2018, 10:28 a.m. | OK | Java 8 | TESTS | 102 | 217 | 2969600 | 2300 | |
44598963 | aminul | E | Oct. 20, 2018, 1:28 p.m. | OK | Java 8 | TESTS | 102 | 249 | 0 | 2300 | |
45143520 | CrazyFlower | E | Oct. 31, 2018, 3:42 p.m. | OK | Java 8 | TESTS | 102 | 498 | 0 | 2300 | |
44588986 | BaZ_ prasun123 aashrayagarwal | E | Oct. 20, 2018, 10:28 a.m. | OK | Java 8 | TESTS | 102 | 2948 | 0 | 2300 | |
44674199 | CrashMaster | E | Oct. 22, 2018, 1:38 a.m. | OK | MS C++ | TESTS | 102 | 78 | 819200 | 2300 | |
68387675 | vjudge2 | E | Jan. 8, 2020, 6:53 a.m. | OK | MS C++ | TESTS | 102 | 93 | 3174400 | 2300 | |
68571316 | vjudge4 | E | Jan. 11, 2020, 2:28 a.m. | OK | MS C++ | TESTS | 102 | 109 | 3174400 | 2300 | |
44674157 | CrashMaster | E | Oct. 22, 2018, 1:34 a.m. | OK | MS C++ | TESTS | 102 | 421 | 819200 | 2300 | |
44762080 | Vladimir22 | E | Oct. 24, 2018, 7:45 a.m. | OK | MS C++ | TESTS | 102 | 452 | 1638400 | 2300 | |
44587407 | lucyanna2018 ShadowSong | E | Oct. 20, 2018, 9:59 a.m. | OK | MS C++ | TESTS | 102 | 686 | 14438400 | 2300 | |
44599826 | test616.cpp | E | Oct. 20, 2018, 1:50 p.m. | OK | PyPy 2 | TESTS | 102 | 1404 | 11468800 | 2300 | |
53704570 | meooow | E | May 3, 2019, 12:32 p.m. | OK | PyPy 3 | TESTS | 102 | 701 | 25804800 | 2300 | |
44577835 | E | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577687 | E | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577676 | E | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577671 | E | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577665 | E | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577634 | E | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577624 | E | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577515 | E | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577512 | E | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 | ||
44577396 | E | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2300 |
Back to search problems