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 |
---|---|---|---|---|---|---|
1619 | Codeforces Round 762 (Div. 3) | FINISHED | False | 8100 | 97169063 | Dec. 20, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 7753 ) | D | New Year's Problem | PROGRAMMING | binary search brute force greedy sortings |
B"Vlad has n friends, for each of whom he wants to buy one gift for the New Year. There are m shops in the city, in each of which he can buy a gift for any of his friends. If the j -th friend ( 1 <= j <= n ) receives a gift bought in the shop with the number i ( 1 <= i <= m ), then the friend receives p_{ij} units of joy. The rectangular table p_{ij} is given in the input. Vlad has time to visit at most n-1 shops (where n is the number of friends). He chooses which shops he will visit and for which friends he will buy gifts in each of them. Let the j -th friend receive a_j units of joy from Vlad's gift. Let's find the value alpha= min {a_1, a_2, ... , a_n } . Vlad's goal is to buy gifts so that the value of alpha is as large as possible. In other words, Vlad wants to maximize the minimum of the joys of his friends. For example, let m = 2 , n = 2 . Let the joy from the gifts that we can buy in the first shop: p_{11} = 1 , p_{12}=2 , in the second shop: p_{21} = 3 , p_{22}=4 . Then it is enough for Vlad to go only to the second shop and buy a gift for the first friend, bringing joy 3 , and for the second -- bringing joy 4 . In this case, the value alpha will be equal to min {3, 4 } = 3 Help Vlad choose gifts for his friends so that the value of alpha is as high as possible. Please note that each friend must receive one gift. Vlad can visit at most n-1 shops (where n is the number of friends). In the shop, he can buy any number of gifts. The first line of the input contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the input. An empty line is written before each test case. Then there is a line containing integers m and n ( 2 <= n , 2 <= n cdot m <= 10^5 ) separated by a space -- the number of shops and the number of friends, where n cdot m$$"... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
140122668 | ssvb | D | Dec. 21, 2021, 3:03 a.m. | OK | D | TESTS | 14 | 46 | 13721600 | ||
140170054 | ruban | D | Dec. 21, 2021, 1:47 p.m. | OK | Delphi | TESTS | 14 | 61 | 42700800 | ||
140134601 | 4vk | D | Dec. 21, 2021, 6:55 a.m. | OK | GNU C++14 | TESTS | 14 | 31 | 1536000 | ||
140208534 | mc_rodrix99 | D | Dec. 21, 2021, 9:56 p.m. | OK | GNU C++14 | TESTS | 14 | 31 | 1740800 | ||
140203435 | Mazen13 | D | Dec. 21, 2021, 8 p.m. | OK | GNU C++14 | TESTS | 14 | 31 | 1945600 | ||
140125336 | srijay | D | Dec. 21, 2021, 4:11 a.m. | OK | GNU C++14 | TESTS | 14 | 31 | 1945600 | ||
140126931 | Aritra741 | D | Dec. 21, 2021, 4:44 a.m. | OK | GNU C++14 | TESTS | 14 | 31 | 3072000 | ||
140205803 | Username4132 | D | Dec. 21, 2021, 8:48 p.m. | OK | GNU C++14 | TESTS | 14 | 46 | 409600 | ||
140221607 | songziyan | D | Dec. 22, 2021, 5 a.m. | OK | GNU C++14 | TESTS | 14 | 46 | 819200 | ||
140163477 | syf1201 | D | Dec. 21, 2021, 12:36 p.m. | OK | GNU C++14 | TESTS | 14 | 46 | 819200 | ||
140157596 | nithish_kannen | D | Dec. 21, 2021, 11:23 a.m. | OK | GNU C++14 | TESTS | 14 | 46 | 819200 | ||
140153619 | maverick225 | D | Dec. 21, 2021, 10:35 a.m. | OK | GNU C++14 | TESTS | 14 | 46 | 819200 | ||
140204563 | OsamaX01 | D | Dec. 21, 2021, 8:23 p.m. | OK | GNU C++17 | TESTS | 14 | 30 | 1536000 | ||
140205539 | tridib_2003 | D | Dec. 21, 2021, 8:42 p.m. | OK | GNU C++17 | TESTS | 14 | 31 | 1536000 | ||
140147985 | _awwwsme_ | D | Dec. 21, 2021, 9:29 a.m. | OK | GNU C++17 | TESTS | 14 | 31 | 1536000 | ||
140110721 | Blitztage | D | Dec. 20, 2021, 8:22 p.m. | OK | GNU C++17 | TESTS | 14 | 31 | 1536000 | ||
140179731 | swift51385 | D | Dec. 21, 2021, 3:24 p.m. | OK | GNU C++17 | TESTS | 14 | 31 | 1638400 | ||
140144513 | DAT_BOI | D | Dec. 21, 2021, 8:54 a.m. | OK | GNU C++17 | TESTS | 14 | 31 | 2457600 | ||
140223817 | SHAHIN98 | D | Dec. 22, 2021, 5:39 a.m. | OK | GNU C++17 | TESTS | 14 | 31 | 6348800 | ||
140170004 | drst_4912 | D | Dec. 21, 2021, 1:47 p.m. | OK | GNU C++17 | TESTS | 14 | 46 | 409600 | ||
140168483 | ataha1 | D | Dec. 21, 2021, 1:31 p.m. | OK | GNU C++17 | TESTS | 14 | 46 | 614400 | ||
140169242 | gokulpatel | D | Dec. 21, 2021, 1:39 p.m. | OK | GNU C++17 | TESTS | 14 | 46 | 819200 | ||
140136613 | Hackapie | D | Dec. 21, 2021, 7:20 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 30 | 819200 | ||
140218185 | neeraj_joshi | D | Dec. 22, 2021, 3:43 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 409600 | ||
140124396 | vivekmskn7658 | D | Dec. 21, 2021, 3:48 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 819200 | ||
140198147 | Ayu0809 | D | Dec. 21, 2021, 6:35 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 1638400 | ||
140141898 | jakao | D | Dec. 21, 2021, 8:23 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 2048000 | ||
140119744 | ashwAni234 | D | Dec. 21, 2021, 1:25 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 2048000 | ||
140115278 | yasserkhan45 | D | Dec. 20, 2021, 10:14 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 2048000 | ||
140109500 | kushagra3288 | D | Dec. 20, 2021, 7:56 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 2048000 | ||
140119621 | zwu2020030959 | D | Dec. 21, 2021, 1:21 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 2252800 | ||
140216651 | hithu | D | Dec. 22, 2021, 3:04 a.m. | OK | GNU C++17 (64) | TESTS | 14 | 31 | 2867200 | ||
140223151 | heisenberg09 | D | Dec. 22, 2021, 5:28 a.m. | OK | GNU C++20 (64) | TESTS | 14 | 15 | 409600 | ||
140121522 | schiftyfive4 | D | Dec. 21, 2021, 2:31 a.m. | OK | GNU C++20 (64) | TESTS | 14 | 30 | 2048000 | ||
140142193 | Enamul_Hasan85 | D | Dec. 21, 2021, 8:26 a.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 819200 | ||
140138776 | RP_21 | D | Dec. 21, 2021, 7:46 a.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 819200 | ||
140120344 | Noob_02 | D | Dec. 21, 2021, 1:51 a.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 819200 | ||
140111031 | Gustavian86 | D | Dec. 20, 2021, 8:27 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 921600 | ||
140193438 | adinovap20 | D | Dec. 21, 2021, 5:41 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 1024000 | ||
140220163 | Amimoy12 | D | Dec. 22, 2021, 4:31 a.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 1638400 | ||
140191939 | emperor_gentoo | D | Dec. 21, 2021, 5:25 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 1638400 | ||
140206362 | pastilia | D | Dec. 21, 2021, 9 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 31 | 2048000 | ||
140155718 | ArchitSharma | D | Dec. 21, 2021, 11 a.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
140153831 | ArchitSharma | D | Dec. 21, 2021, 10:38 a.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
140152895 | ArchitSharma | D | Dec. 21, 2021, 10:27 a.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
140135313 | sumitchavan | D | Dec. 21, 2021, 7:04 a.m. | OK | Java 11 | TESTS | 14 | 202 | 0 | ||
140135150 | Piyush1607 | D | Dec. 21, 2021, 7:02 a.m. | OK | Java 11 | TESTS | 14 | 202 | 0 | ||
140109705 | podtelkin | D | Dec. 20, 2021, 8:01 p.m. | OK | Java 11 | TESTS | 14 | 202 | 0 | ||
140129390 | BiggEr. | D | Dec. 21, 2021, 5:25 a.m. | OK | Java 11 | TESTS | 14 | 218 | 0 | ||
140120666 | ddwuya | D | Dec. 21, 2021, 2:02 a.m. | OK | Java 11 | TESTS | 14 | 218 | 1331200 | ||
140142582 | dheerajchhatanidc | D | Dec. 21, 2021, 8:31 a.m. | OK | Java 11 | TESTS | 14 | 233 | 0 | ||
140114121 | LongWalk | D | Dec. 20, 2021, 9:37 p.m. | OK | Java 11 | TESTS | 14 | 233 | 0 | ||
140187831 | kyrie_start | D | Dec. 21, 2021, 4:44 p.m. | OK | Java 8 | TESTS | 14 | 139 | 0 | ||
140122402 | 201502010200 | D | Dec. 21, 2021, 2:57 a.m. | OK | Java 8 | TESTS | 14 | 140 | 0 | ||
140146045 | anshulchou_123 | D | Dec. 21, 2021, 9:10 a.m. | OK | Java 8 | TESTS | 14 | 171 | 15155200 | ||
140205771 | _fire_fly_ | D | Dec. 21, 2021, 8:47 p.m. | OK | Java 8 | TESTS | 14 | 186 | 0 | ||
140180344 | ganesh_6 | D | Dec. 21, 2021, 3:30 p.m. | OK | Java 8 | TESTS | 14 | 186 | 3379200 | ||
140201661 | naitikvarshney | D | Dec. 21, 2021, 7:28 p.m. | OK | Java 8 | TESTS | 14 | 187 | 0 | ||
140218319 | HastaLaVistaLa | D | Dec. 22, 2021, 3:47 a.m. | OK | Java 8 | TESTS | 14 | 264 | 0 | ||
140128282 | duyipeng | D | Dec. 21, 2021, 5:08 a.m. | OK | Java 8 | TESTS | 14 | 358 | 0 | ||
140210349 | gblake31 | D | Dec. 21, 2021, 11:02 p.m. | OK | Java 8 | TESTS | 14 | 374 | 0 | ||
140126649 | duyipeng | D | Dec. 21, 2021, 4:39 a.m. | OK | Java 8 | TESTS | 14 | 374 | 0 | ||
140185569 | Rohit060903 | D | Dec. 21, 2021, 4:20 p.m. | OK | MS C++ 2017 | TESTS | 14 | 233 | 2969600 | ||
140200839 | Rohit060903 | D | Dec. 21, 2021, 7:14 p.m. | OK | MS C++ 2017 | TESTS | 14 | 249 | 2969600 | ||
140177320 | 1_2_3_4_5_9 | D | Dec. 21, 2021, 3 p.m. | OK | PyPy 2 | TESTS | 14 | 171 | 14745600 | ||
140119040 | OlavBakken | D | Dec. 21, 2021, 12:56 a.m. | OK | PyPy 2 | TESTS | 14 | 482 | 7680000 | ||
140184700 | sakshatmali | D | Dec. 21, 2021, 4:12 p.m. | OK | PyPy 3 | TESTS | 14 | 202 | 10444800 | ||
140206920 | hxu10 | D | Dec. 21, 2021, 9:13 p.m. | OK | PyPy 3 | TESTS | 14 | 233 | 15564800 | ||
140155906 | puffc0rn | D | Dec. 21, 2021, 11:03 a.m. | OK | PyPy 3 | TESTS | 14 | 233 | 75571200 | ||
140154710 | AbnerShen | D | Dec. 21, 2021, 10:48 a.m. | OK | PyPy 3 | TESTS | 14 | 264 | 10240000 | ||
140113835 | pajenegod | D | Dec. 20, 2021, 9:30 p.m. | OK | PyPy 3 | TESTS | 14 | 264 | 12390400 | ||
140156903 | piSquared | D | Dec. 21, 2021, 11:15 a.m. | OK | PyPy 3 | TESTS | 14 | 280 | 10854400 | ||
140126073 | Bambam_Shivam | D | Dec. 21, 2021, 4:27 a.m. | OK | PyPy 3 | TESTS | 14 | 296 | 10752000 | ||
140113747 | pajenegod | D | Dec. 20, 2021, 9:28 p.m. | OK | PyPy 3 | TESTS | 14 | 296 | 12390400 | ||
140216557 | jano31415 | D | Dec. 22, 2021, 3:01 a.m. | OK | PyPy 3 | TESTS | 14 | 311 | 9830400 | ||
140142643 | AbnerShen | D | Dec. 21, 2021, 8:31 a.m. | OK | PyPy 3 | TESTS | 14 | 342 | 16793600 | ||
140179673 | M0TbkA | D | Dec. 21, 2021, 3:23 p.m. | OK | PyPy 3-64 | TESTS | 14 | 264 | 9932800 | ||
140171174 | CyberSick | D | Dec. 21, 2021, 1:59 p.m. | OK | PyPy 3-64 | TESTS | 14 | 311 | 13414400 | ||
140113894 | pajenegod | D | Dec. 20, 2021, 9:31 p.m. | OK | PyPy 3-64 | TESTS | 14 | 373 | 15667200 | ||
140183598 | newtocf | D | Dec. 21, 2021, 4:02 p.m. | OK | PyPy 3-64 | TESTS | 14 | 389 | 23347200 | ||
140114165 | Aksnov | D | Dec. 20, 2021, 9:38 p.m. | OK | PyPy 3-64 | TESTS | 14 | 404 | 24371200 | ||
140113816 | pajenegod | D | Dec. 20, 2021, 9:29 p.m. | OK | PyPy 3-64 | TESTS | 14 | 420 | 14131200 | ||
140161055 | shiviDON | D | Dec. 21, 2021, 12:07 p.m. | OK | PyPy 3-64 | TESTS | 14 | 436 | 25292800 | ||
140197977 | armsusman | D | Dec. 21, 2021, 6:33 p.m. | OK | PyPy 3-64 | TESTS | 14 | 467 | 21811200 | ||
140108690 | cmplx-xyttmt | D | Dec. 20, 2021, 7:43 p.m. | OK | PyPy 3-64 | TESTS | 14 | 529 | 15872000 | ||
140164655 | FrozenKandy | D | Dec. 21, 2021, 12:49 p.m. | OK | PyPy 3-64 | TESTS | 14 | 545 | 13721600 | ||
140147514 | OLOGY | D | Dec. 21, 2021, 9:25 a.m. | OK | Python 2 | TESTS | 14 | 889 | 6963200 | ||
140111733 | xyxoro | D | Dec. 20, 2021, 8:41 p.m. | OK | Python 3 | TESTS | 14 | 171 | 7270400 | ||
140157157 | slskrish1998 | D | Dec. 21, 2021, 11:18 a.m. | OK | Python 3 | TESTS | 14 | 186 | 9113600 | ||
140205609 | raggzy | D | Dec. 21, 2021, 8:44 p.m. | OK | Python 3 | TESTS | 14 | 202 | 7884800 | ||
140136289 | gck_16 | D | Dec. 21, 2021, 7:16 a.m. | OK | Python 3 | TESTS | 14 | 264 | 7884800 | ||
140111458 | xyxoro | D | Dec. 20, 2021, 8:36 p.m. | OK | Python 3 | TESTS | 14 | 265 | 7884800 | ||
140210955 | Pukbwq | D | Dec. 21, 2021, 11:30 p.m. | OK | Python 3 | TESTS | 14 | 311 | 10137600 | ||
140191847 | Sachin_Sain | D | Dec. 21, 2021, 5:24 p.m. | OK | Python 3 | TESTS | 14 | 342 | 13209600 | ||
140156480 | physmo | D | Dec. 21, 2021, 11:10 a.m. | OK | Python 3 | TESTS | 14 | 343 | 11059200 | ||
140160042 | jamesbansal24jan | D | Dec. 21, 2021, 11:55 a.m. | OK | Python 3 | TESTS | 14 | 1169 | 7884800 | ||
140202087 | KeiTsukishima | D | Dec. 21, 2021, 7:36 p.m. | OK | Python 3 | TESTS | 14 | 1747 | 10240000 | ||
140215056 | Letmecry | D | Dec. 22, 2021, 2:18 a.m. | OK | Rust 2021 | TESTS | 14 | 78 | 4710400 |
Back to search problems