Codeforces Round 935 (Div. 3)

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
1945 Codeforces Round 935 (Div. 3) FINISHED False 8100 26344463 March 19, 2024, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4370 ) F Kirill and Mushrooms PROGRAMMING data structures sortings

B"As soon as everyone in the camp fell asleep, Kirill sneaked out of the tent and went to the Wise Oak to gather mushrooms. It is known that there are n mushrooms growing under the Oak, each of which has magic power v_i . Kirill really wants to make a magical elixir of maximum strength from the mushrooms. The strength of the elixir is equal to the product of the number of mushrooms in it and the minimum magic power among these mushrooms. To prepare the elixir, Kirill will sequentially pick one mushroom growing under the Oak. Kirill can gather mushrooms in any order. However, it's not that simple. The Wise Oak informed Kirill of a permutation of numbers p from 1 to n . If Kirill picks only k mushrooms, then the magic power of all mushrooms with indices p_1, p_2, ... , p_{k - 1} will become 0 . Kirill will not use mushrooms with zero magic power to prepare the elixir. Your task is to help Kirill gather mushrooms in such a way that he can brew the elixir of maximum possible strength. However, Kirill is a little scared to stay near the oak for too long, so out of all the suitable options for gathering mushrooms, he asks you to find the one with the minimum number of mushrooms. A permutation of length n is an array consisting of n different integers from 1 to n in any order. For example, [2,3,1,5,4] is a permutation, but [1,2,2] is not a permutation ( 2 appears in the array twice) and [1,3,4] is also not a permutation ( n=3 , but 4 appears in the array). Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 200 ,000 ) -- the number of mushrooms. The second line contains an array v of size n ( 1 <= v_i <= 10^9 ) -- the magic"...

Tutorials

127377

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
252374744 whiteedu F March 19, 2024, 11:47 p.m. OK C++14 (GCC 6-32) TESTS 17 109 4812800
252321883 cxlian F March 19, 2024, 3:25 p.m. OK C++14 (GCC 6-32) TESTS 17 139 3584000
252353901 PresentLogic F March 19, 2024, 7:08 p.m. OK C++14 (GCC 6-32) TESTS 17 139 3993600
252324814 andrewtam F March 19, 2024, 3:41 p.m. OK C++14 (GCC 6-32) TESTS 17 155 3993600
252391626 Levisa F March 20, 2024, 4:45 a.m. OK C++14 (GCC 6-32) TESTS 17 156 4812800
252380717 UZING F March 20, 2024, 1:47 a.m. OK C++14 (GCC 6-32) TESTS 17 202 5632000
252374288 kavascg F March 19, 2024, 11:37 p.m. OK C++14 (GCC 6-32) TESTS 17 218 15667200
252392217 leggiero F March 20, 2024, 4:53 a.m. OK C++14 (GCC 6-32) TESTS 17 265 10649600
252396485 wuzihan F March 20, 2024, 5:42 a.m. OK C++14 (GCC 6-32) TESTS 17 265 13004800
252381346 Mr_KaYa F March 20, 2024, 1:59 a.m. OK C++14 (GCC 6-32) TESTS 17 280 9830400
252314266 ac_de_taffy_ F March 19, 2024, 2:40 p.m. OK C++17 (GCC 7-32) TESTS 17 78 2560000
252376999 Sparkle_Twilight F March 20, 2024, 12:35 a.m. OK C++17 (GCC 7-32) TESTS 17 109 2048000
252368231 vyshnavchayi F March 19, 2024, 9:48 p.m. OK C++17 (GCC 7-32) TESTS 17 109 3481600
252376948 Ra16bit F March 20, 2024, 12:34 a.m. OK C++17 (GCC 7-32) TESTS 17 124 2048000
252379991 SpadeA261 F March 20, 2024, 1:35 a.m. OK C++17 (GCC 7-32) TESTS 17 124 2662400
252378816 9527_ F March 20, 2024, 1:11 a.m. OK C++17 (GCC 7-32) TESTS 17 124 2662400
252332024 soulbloom F March 19, 2024, 4:24 p.m. OK C++17 (GCC 7-32) TESTS 17 124 2662400
252318685 luoZH111 F March 19, 2024, 3:06 p.m. OK C++17 (GCC 7-32) TESTS 17 124 3072000
252398208 Gavinprprpr F March 20, 2024, 6 a.m. OK C++17 (GCC 7-32) TESTS 17 124 3174400
252368221 jahid_hridoy F March 19, 2024, 9:47 p.m. OK C++17 (GCC 7-32) TESTS 17 124 3174400
252333491 dreamoon_love_AA F March 19, 2024, 4:33 p.m. OK C++20 (GCC 13-64) TESTS 17 78 2662400
252378645 am_i. F March 20, 2024, 1:08 a.m. OK C++20 (GCC 13-64) TESTS 17 78 3788800
252303912 fsjhhh F March 19, 2024, 1:41 p.m. OK C++20 (GCC 13-64) TESTS 17 78 5324800
252306732 Susie_Rain F March 19, 2024, 1:57 p.m. OK C++20 (GCC 13-64) TESTS 17 93 5324800
252379766 0517fsh F March 20, 2024, 1:30 a.m. OK C++20 (GCC 13-64) TESTS 17 93 43212800
252356788 el_tunel F March 19, 2024, 7:36 p.m. OK C++20 (GCC 13-64) TESTS 17 108 6451200
252371763 gbula F March 19, 2024, 10:47 p.m. OK C++20 (GCC 13-64) TESTS 17 124 8089600
252381720 hungeazy F March 20, 2024, 2:06 a.m. OK C++20 (GCC 13-64) TESTS 17 186 25702400
252365166 d0nrEv4-urh0pe F March 19, 2024, 9:09 p.m. OK C++20 (GCC 13-64) TESTS 17 187 12902400
252329255 qqwrv F March 19, 2024, 4:07 p.m. OK C++20 (GCC 13-64) TESTS 17 202 11264000
252338122 sugar2023 F March 19, 2024, 5:05 p.m. OK Go TESTS 17 233 8192000
252310887 sugar2023 F March 19, 2024, 2:21 p.m. OK Go TESTS 17 233 8192000
252377119 123_wby F March 20, 2024, 12:37 a.m. OK Go TESTS 17 265 25907200
252384543 Zhanzhe_Lee F March 20, 2024, 2:55 a.m. OK Java 21 TESTS 17 436 6246400
252383859 _ShenHua_ F March 20, 2024, 2:43 a.m. OK Java 21 TESTS 17 452 921600
252389007 wdjuruo F March 20, 2024, 4:05 a.m. OK Java 21 TESTS 17 498 7475200
252307629 vijay_panwar12 F March 19, 2024, 2:02 p.m. OK Java 21 TESTS 17 514 11673600
252314099 AKhacks F March 19, 2024, 2:39 p.m. OK Java 21 TESTS 17 576 6656000
252308429 vijay_panwar12 F March 19, 2024, 2:07 p.m. OK Java 21 TESTS 17 592 15564800
252337780 aishwarykesarwani F March 19, 2024, 5:03 p.m. OK Java 21 TESTS 17 982 42598400
252386589 Zhanzhe_Lee F March 20, 2024, 3:28 a.m. OK Java 21 TESTS 17 1060 18329600
252392975 himneesh9 F March 20, 2024, 5:03 a.m. OK Java 21 TESTS 17 1060 38195200
252303451 Xing_ke F March 19, 2024, 1:38 p.m. OK Java 8 TESTS 17 452 14848000
252329126 yvbf F March 19, 2024, 4:06 p.m. OK Java 8 TESTS 17 592 9932800
252334649 faresbadr316 F March 19, 2024, 4:41 p.m. OK Java 8 TESTS 17 857 44646400
252357994 Yousef_Badr F March 19, 2024, 7:48 p.m. OK Java 8 TESTS 17 873 44646400
252334433 Yousef_Badr F March 19, 2024, 4:40 p.m. OK Java 8 TESTS 17 904 44646400
252334922 faresbadr316 F March 19, 2024, 4:43 p.m. OK Java 8 TESTS 17 951 44544000
252335312 Yousef_Badr F March 19, 2024, 4:46 p.m. OK Java 8 TESTS 17 951 44646400
252308754 mikeac F March 19, 2024, 2:08 p.m. OK PyPy 3-64 TESTS 17 296 31846400
252303849 ptripathy013 F March 19, 2024, 1:40 p.m. OK PyPy 3-64 TESTS 17 327 33484800
252301210 100987654321 F March 19, 2024, 1:25 p.m. OK PyPy 3-64 TESTS 17 343 33894400
252300797 scyyyyyyyyyy F March 19, 2024, 1:23 p.m. OK PyPy 3-64 TESTS 17 358 31948800
252302553 JinYuManTang F March 19, 2024, 1:33 p.m. OK PyPy 3-64 TESTS 17 405 35532800
252372894 voicon F March 19, 2024, 11:09 p.m. OK PyPy 3-64 TESTS 17 452 35430400
252384856 leijun F March 20, 2024, 3 a.m. OK PyPy 3-64 TESTS 17 545 32256000
252363628 Nullz F March 19, 2024, 8:51 p.m. OK PyPy 3-64 TESTS 17 560 32153600
252385180 whatCanISay-ggl F March 20, 2024, 3:05 a.m. OK PyPy 3-64 TESTS 17 608 51916800
252349784 gardengnome F March 19, 2024, 6:32 p.m. OK PyPy 3-64 TESTS 17 670 35123200
252302702 OLOGY F March 19, 2024, 1:34 p.m. OK Python 2 TESTS 17 577 23040000
252301049 OLOGY F March 19, 2024, 1:25 p.m. OK Python 2 TESTS 17 654 23040000
252309615 OLOGY F March 19, 2024, 2:13 p.m. OK Python 2 TESTS 17 732 23040000
252397496 grit_master F March 20, 2024, 5:53 a.m. OK Python 3 TESTS 17 389 37068800
252379692 Charming F March 20, 2024, 1:29 a.m. OK Python 3 TESTS 17 529 46796800
252310896 robostac F March 19, 2024, 2:21 p.m. OK Rust 2021 TESTS 17 62 15667200

remove filters

Back to search problems