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 |
---|---|---|---|---|---|---|
( 2090 ) | C | Cloud Computing | PROGRAMMING | data structures greedy | 2000 |
B"Buber is a Berland technology company that specializes in waste of investor's money. Recently Buber decided to transfer its infrastructure to a cloud. The company decided to rent CPU cores in the cloud for n consecutive days, which are numbered from 1 to n . Buber requires k CPU cores each day. The cloud provider offers m tariff plans, the i -th tariff plan is characterized by the following parameters: Buber can arbitrarily share its computing core needs between the tariff plans. Every day Buber can rent an arbitrary number of cores (from 0 to c_i ) on each of the available plans. The number of rented cores on a tariff plan can vary arbitrarily from day to day. Find the minimum amount of money that Buber will pay for its work for n days from 1 to n . If on a day the total number of cores for all available tariff plans is strictly less than k , then this day Buber will have to work on fewer cores (and it rents all the available cores), otherwise Buber rents exactly k cores this day. The first line of the input contains three integers n , k and m ( 1 <= n,k <= 10^6, 1 <= m <= 2 cdot10^5 ) -- the number of days to analyze, the desired daily number of cores, the number of tariff plans. The following m lines contain descriptions of tariff plans, one description per line. Each line contains four integers l_i , r_i , c_i , p_i ( 1 <= l_i <= r_i <= n , 1 <= c_i, p_i <= 10^6 ), where l_i and r_i are starting and finishing days of the i -th tariff plan, c_i -- number of cores, p_i -- price of a single core for daily rent on the i -th tariff plan. Print a single integer number -- the minimal amount of money that Buber will pay. "... |
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 |
---|---|---|---|---|---|---|---|---|---|---|---|
45444064 | adorkable_ | C | Nov. 8, 2018, 12:31 p.m. | OK | GNU C++11 | TESTS | 117 | 218 | 34099200 | 2000 | |
48773146 | lllooolll | C | Jan. 23, 2019, 2:03 a.m. | OK | GNU C++11 | TESTS | 117 | 218 | 34406400 | 2000 | |
48657252 | ReaLNero1 | C | Jan. 21, 2019, 3:37 a.m. | OK | GNU C++11 | TESTS | 117 | 218 | 34406400 | 2000 | |
44751222 | ReaLNero1 | C | Oct. 23, 2018, 8:03 p.m. | OK | GNU C++11 | TESTS | 117 | 234 | 24678400 | 2000 | |
44592867 | stonepage crowworks695 | C | Oct. 20, 2018, 11:38 a.m. | OK | GNU C++11 | TESTS | 117 | 234 | 24678400 | 2000 | |
44582431 | ljt12138 tqyaaaaaaaang __stdcall | C | Oct. 20, 2018, 8:47 a.m. | OK | GNU C++11 | TESTS | 117 | 234 | 34406400 | 2000 | |
46191992 | cheetose | C | Nov. 25, 2018, 5:57 a.m. | OK | GNU C++11 | TESTS | 117 | 249 | 11776000 | 2000 | |
44585854 | dream_maker yyf0309 | C | Oct. 20, 2018, 9:33 a.m. | OK | GNU C++11 | TESTS | 117 | 249 | 28672000 | 2000 | |
45546358 | forest | C | Nov. 11, 2018, 1:49 a.m. | OK | GNU C++11 | TESTS | 117 | 264 | 13004800 | 2000 | |
44658206 | zhenGG | C | Oct. 21, 2018, 1:57 p.m. | OK | GNU C++11 | TESTS | 117 | 264 | 88166400 | 2000 | |
46505701 | ya_ dasper dickynovanto1103 | C | Dec. 2, 2018, 11:09 a.m. | OK | GNU C++14 | TESTS | 117 | 234 | 15052800 | 2000 | |
44723600 | wiwitrifai | C | Oct. 23, 2018, 6:51 a.m. | OK | GNU C++14 | TESTS | 117 | 295 | 33587200 | 2000 | |
51840372 | vjudge1 | C | March 25, 2019, 9:11 p.m. | OK | GNU C++14 | TESTS | 117 | 296 | 26316800 | 2000 | |
45984182 | wleung_bvg | C | Nov. 20, 2018, 4:58 a.m. | OK | GNU C++14 | TESTS | 117 | 296 | 38092800 | 2000 | |
56827667 | gs15120 | C | July 11, 2019, 5:25 a.m. | OK | GNU C++14 | TESTS | 117 | 296 | 76595200 | 2000 | |
44686801 | Kuroni Shirone GreymaneSilverfang | C | Oct. 22, 2018, 10:01 a.m. | OK | GNU C++14 | TESTS | 117 | 312 | 13004800 | 2000 | |
44654635 | samsam2310 FISHTOBY hank55663 | C | Oct. 21, 2018, 12:35 p.m. | OK | GNU C++14 | TESTS | 117 | 327 | 26316800 | 2000 | |
45415144 | tuan26397 | C | Nov. 7, 2018, 1:50 p.m. | OK | GNU C++14 | TESTS | 117 | 327 | 34611200 | 2000 | |
45882041 | JHSN | C | Nov. 17, 2018, 2:21 p.m. | OK | GNU C++14 | TESTS | 117 | 343 | 22528000 | 2000 | |
45415193 | tuan26397 | C | Nov. 7, 2018, 1:51 p.m. | OK | GNU C++14 | TESTS | 117 | 343 | 34611200 | 2000 | |
61976938 | chuducanhchy | C | Oct. 6, 2019, 10:48 a.m. | OK | GNU C++17 | TESTS | 117 | 295 | 28672000 | 2000 | |
44592133 | Disappear 929558890 rzy_99 | C | Oct. 20, 2018, 11:25 a.m. | OK | GNU C++17 | TESTS | 117 | 296 | 41779200 | 2000 | |
45436964 | whjpji | C | Nov. 8, 2018, 8:34 a.m. | OK | GNU C++17 | TESTS | 117 | 326 | 13107200 | 2000 | |
46057363 | despair | C | Nov. 22, 2018, 11:38 a.m. | OK | GNU C++17 | TESTS | 117 | 342 | 11468800 | 2000 | |
46057431 | despair | C | Nov. 22, 2018, 11:39 a.m. | OK | GNU C++17 | TESTS | 117 | 358 | 16281600 | 2000 | |
44618281 | F.J | C | Oct. 21, 2018, 4:09 a.m. | OK | GNU C++17 | TESTS | 117 | 358 | 42496000 | 2000 | |
47521973 | kefaa2 | C | Dec. 26, 2018, 1:36 p.m. | OK | GNU C++17 | TESTS | 117 | 358 | 46592000 | 2000 | |
44732581 | .o. alex9801 ko_osaga | C | Oct. 23, 2018, 11:21 a.m. | OK | GNU C++17 | TESTS | 117 | 358 | 52428800 | 2000 | |
44586685 | chengjian | C | Oct. 20, 2018, 9:46 a.m. | OK | GNU C++17 | TESTS | 117 | 358 | 70758400 | 2000 | |
44759306 | ultmaster kblack zerolin | C | Oct. 24, 2018, 6 a.m. | OK | GNU C++17 | TESTS | 117 | 358 | 78950400 | 2000 | |
45580011 | layersOf | C | Nov. 12, 2018, 3:05 a.m. | OK | Java 8 | TESTS | 117 | 686 | 169062400 | 2000 | |
45580088 | layersOf | C | Nov. 12, 2018, 3:11 a.m. | OK | Java 8 | TESTS | 117 | 701 | 169062400 | 2000 | |
45580079 | layersOf | C | Nov. 12, 2018, 3:11 a.m. | OK | Java 8 | TESTS | 117 | 763 | 169062400 | 2000 | |
44601149 | wadissimo | C | Oct. 20, 2018, 2:29 p.m. | OK | Java 8 | TESTS | 117 | 811 | 18534400 | 2000 | |
44586315 | aminul Sherlock221B Alvee9 | C | Oct. 20, 2018, 9:41 a.m. | OK | Java 8 | TESTS | 117 | 826 | 159129600 | 2000 | |
51365751 | mashinist | C | March 16, 2019, 9:31 a.m. | OK | Java 8 | TESTS | 117 | 889 | 34099200 | 2000 | |
44585409 | hulk_man | C | Oct. 20, 2018, 9:26 a.m. | OK | Java 8 | TESTS | 117 | 1013 | 99532800 | 2000 | |
45066395 | Omar_Morsi Kharouba aabdelzaher | C | Oct. 29, 2018, 5:12 p.m. | OK | Java 8 | TESTS | 117 | 1075 | 135475200 | 2000 | |
65296048 | yaoct | C | Nov. 18, 2019, 11:32 a.m. | OK | Java 8 | TESTS | 117 | 1107 | 76390400 | 2000 | |
65294929 | yaoct | C | Nov. 18, 2019, 11:07 a.m. | OK | Java 8 | TESTS | 117 | 1107 | 76390400 | 2000 | |
44589146 | batraz | C | Oct. 20, 2018, 10:31 a.m. | OK | Mono C# | TESTS | 117 | 2354 | 96256000 | 2000 | |
44585435 | lucyanna2018 ShadowSong | C | Oct. 20, 2018, 9:26 a.m. | OK | MS C++ | TESTS | 117 | 389 | 69017600 | 2000 | |
44777345 | Vladimir22 | C | Oct. 24, 2018, 2:57 p.m. | OK | MS C++ | TESTS | 117 | 405 | 21606400 | 2000 | |
44664925 | CrashMaster | C | Oct. 21, 2018, 5:19 p.m. | OK | MS C++ | TESTS | 117 | 421 | 88166400 | 2000 | |
48440208 | budi99i | C | Jan. 16, 2019, 2:23 a.m. | OK | MS C++ | TESTS | 117 | 467 | 102400000 | 2000 | |
68107805 | vjudge1 | C | Jan. 3, 2020, 8:04 a.m. | OK | MS C++ | TESTS | 117 | 467 | 102400000 | 2000 | |
68104271 | vjudge3 | C | Jan. 3, 2020, 6:03 a.m. | OK | MS C++ | TESTS | 117 | 468 | 139980800 | 2000 | |
63786542 | vjudge1 | C | Oct. 30, 2019, 12:28 p.m. | OK | MS C++ | TESTS | 117 | 529 | 166502400 | 2000 | |
67952361 | vjudge2 | C | Dec. 30, 2019, 8:13 a.m. | OK | MS C++ | TESTS | 117 | 561 | 102400000 | 2000 | |
67989312 | vjudge4 | C | Dec. 31, 2019, 3 a.m. | OK | MS C++ | TESTS | 117 | 561 | 126156800 | 2000 | |
67988880 | vjudge3 | C | Dec. 31, 2019, 2:32 a.m. | OK | MS C++ | TESTS | 117 | 888 | 102604800 | 2000 | |
63951014 | Ancient_mage | C | Oct. 31, 2019, 9:18 p.m. | OK | MS C++ 2017 | TESTS | 117 | 966 | 144486400 | 2000 | |
44577546 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577508 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577487 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577482 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577467 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577457 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577455 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577444 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577588 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
44577580 | C | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 |
Back to search problems