Codeforces Round 950 (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
1980 Codeforces Round 950 (Div. 3) FINISHED False 8100 19754663 June 3, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 35433 ) B Choosing Cubes PROGRAMMING sortings sortings

B'Dmitry has n cubes, numbered from left to right from 1 to n . The cube with index f is his favorite. Dmitry threw all the cubes on the table, and the i -th cube showed the value a_i ( 1 <= a_i <= 100 ). After that, he arranged the cubes in non-increasing order of their values, from largest to smallest. If two cubes show the same value, they can go in any order. After sorting, Dmitry removed the first k cubes. Then he became interested in whether he removed his favorite cube (note that its position could have changed after sorting). For example, if n=5 , f=2 , a = [4, color{green}3, 3, 2, 3] (the favorite cube is highlighted in green), and k = 2 , the following could have happened: The first line contains an integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then follow the descriptions of the test cases. The first line of each test case description contains three integers n , f , and k ( 1 <= f, k <= n <= 100 ) -- the number of cubes, the index of Dmitry 's favorite cube, and the number of removed cubes, respectively. The second line of each test case description contains n integers a_i ( 1 <= a_i <= 100 ) -- the values shown on the cubes. For each test case, output one line -- "YES" if the cube will be removed in all cases, "NO" if it will not be removed in any case, "MAYBE" if it may be either removed or left. You can output the answer in any case. For example, the strings "YES", "nO", "mAyBe" will be accepted as answers. '...

Tutorials

130135

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
264064122 A1ternate B June 3, 2024, 11:25 p.m. OK C# 10 TESTS 3 61 3072000
264039349 NotBaimaokong B June 3, 2024, 5:35 p.m. OK C++14 (GCC 6-32) TESTS 3 31 0
264084455 LuckyYu B June 4, 2024, 5:32 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264077175 sujay_sikandar B June 4, 2024, 3:59 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264076661 Nadaan_Parinda B June 4, 2024, 3:51 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264074592 mtnvdsk B June 4, 2024, 3:18 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264073935 gunjackk28 B June 4, 2024, 3:06 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264071961 krishh9 B June 4, 2024, 2:32 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264065631 ZnHF B June 4, 2024, 12:11 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264066722 LeoQian B June 4, 2024, 12:44 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264085539 LuckyYu B June 4, 2024, 5:43 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
264053853 abhishekgupta87984 B June 3, 2024, 8:01 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
264082897 codinavia B June 4, 2024, 5:15 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
264052198 jainadit67 B June 3, 2024, 7:40 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
264039311 Juns_s B June 3, 2024, 5:35 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264083641 ayushmaan_2004 B June 4, 2024, 5:23 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264073746 z-y-h B June 4, 2024, 3:03 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264069487 3R1C B June 4, 2024, 1:56 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264065524 pkp245464 B June 4, 2024, 12:08 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264044259 king2008 B June 3, 2024, 6:19 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264044202 akg_1111 B June 3, 2024, 6:18 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
264067204 abandon_ B June 4, 2024, 12:58 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
264074104 kuramu B June 4, 2024, 3:09 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264085854 fs20091003 B June 4, 2024, 5:47 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264085373 yanke B June 4, 2024, 5:41 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264082198 pm_2 B June 4, 2024, 5:08 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264081900 202103048 B June 4, 2024, 5:04 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264078495 zhangchao_gjc B June 4, 2024, 4:20 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264078099 villas B June 4, 2024, 4:14 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264075607 atik_107 B June 4, 2024, 3:34 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264074527 abusayem68 B June 4, 2024, 3:17 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
264062248 bluemegane B June 3, 2024, 10:31 p.m. OK C# 8 TESTS 3 124 3072000
264084238 magnuson02 B June 4, 2024, 5:29 a.m. OK GNU C11 TESTS 3 30 0
264081658 pranavpettugadi B June 4, 2024, 5:01 a.m. OK GNU C11 TESTS 3 46 0
264032398 himansugupta43 B June 3, 2024, 4:55 p.m. OK GNU C11 TESTS 3 46 0
264080703 meghanabai.pawar.ece23 B June 4, 2024, 4:50 a.m. OK GNU C11 TESTS 3 46 102400
264046473 eaow B June 3, 2024, 6:39 p.m. OK GNU C11 TESTS 3 46 102400
264036945 higher123 B June 3, 2024, 5:18 p.m. OK GNU C11 TESTS 3 46 102400
264037381 swetasachan777 B June 3, 2024, 5:21 p.m. OK GNU C11 TESTS 3 61 0
264054064 saaad B June 3, 2024, 8:04 p.m. OK GNU C11 TESTS 3 108 0
264052675 crapcode B June 3, 2024, 7:46 p.m. OK Go TESTS 3 77 1228800
264050027 ItsLever B June 3, 2024, 7:16 p.m. OK Java 21 TESTS 3 202 307200
264073722 neilchetty B June 4, 2024, 3:03 a.m. OK Java 21 TESTS 3 202 614400
264071275 Xing_ke B June 4, 2024, 2:20 a.m. OK Java 21 TESTS 3 217 0
264068617 nabendu B June 4, 2024, 1:36 a.m. OK Java 21 TESTS 3 218 0
264059162 SD125 B June 3, 2024, 9:20 p.m. OK Java 21 TESTS 3 249 0
264040114 Eslam_Ahmed B June 3, 2024, 5:41 p.m. OK Java 21 TESTS 3 265 102400
264050450 CalebL B June 3, 2024, 7:21 p.m. OK Java 21 TESTS 3 296 0
264076660 minibin B June 4, 2024, 3:51 a.m. OK Java 21 TESTS 3 311 614400
264084062 kshitijv09 B June 4, 2024, 5:27 a.m. OK Java 21 TESTS 3 312 1024000
264075000 krish1832 B June 4, 2024, 3:25 a.m. OK Java 21 TESTS 3 327 819200
264065947 IvanD94 B June 4, 2024, 12:21 a.m. OK Java 8 TESTS 3 156 0
264057668 TravisBickle B June 3, 2024, 8:54 p.m. OK Java 8 TESTS 3 156 0
264037740 krahhstie B June 3, 2024, 5:23 p.m. OK Java 8 TESTS 3 171 0
264074797 GauravSolo B June 4, 2024, 3:21 a.m. OK Java 8 TESTS 3 217 0
264049788 Shivanshway07 B June 3, 2024, 7:14 p.m. OK Java 8 TESTS 3 233 0
264038180 chinky.poluka B June 3, 2024, 5:26 p.m. OK Java 8 TESTS 3 234 0
264035803 nandu_2414 B June 3, 2024, 5:11 p.m. OK Java 8 TESTS 3 249 0
264033523 abdulabed40 B June 3, 2024, 5 p.m. OK Java 8 TESTS 3 249 0
264085989 darshanjk B June 4, 2024, 5:49 a.m. OK Java 8 TESTS 3 265 0
264073071 2manas1 B June 4, 2024, 2:52 a.m. OK Java 8 TESTS 3 265 0
264044385 aayush.mishra B June 3, 2024, 6:20 p.m. OK Kotlin 1.9 TESTS 3 187 204800
264051857 bio-duplex B June 3, 2024, 7:36 p.m. OK Kotlin 1.9 TESTS 3 218 1638400
264046989 kideso B June 3, 2024, 6:45 p.m. OK Kotlin 1.9 TESTS 3 218 1638400
264068897 gouravasdeo11 B June 4, 2024, 1:43 a.m. OK Kotlin 1.9 TESTS 3 249 0
264068692 gouravasdeo11 B June 4, 2024, 1:38 a.m. OK Kotlin 1.9 TESTS 3 296 1638400
264060112 lebron87 B June 3, 2024, 9:39 p.m. OK PyPy 3 TESTS 3 171 4505600
264060045 lebron87 B June 3, 2024, 9:38 p.m. OK PyPy 3 TESTS 3 171 4710400
264057809 haidarito B June 3, 2024, 8:56 p.m. OK PyPy 3 TESTS 3 171 5324800
264084592 tllwtg B June 4, 2024, 5:33 a.m. OK PyPy 3 TESTS 3 187 4300800
264060007 Shaydiesin B June 3, 2024, 9:37 p.m. OK PyPy 3 TESTS 3 187 5120000
264037216 anamitrajoshi B June 3, 2024, 5:20 p.m. OK PyPy 3 TESTS 3 187 5222400
264060149 lebron87 B June 3, 2024, 9:40 p.m. OK PyPy 3 TESTS 3 202 4403200
264034888 Aadithya1 B June 3, 2024, 5:07 p.m. OK PyPy 3 TESTS 3 218 5632000
264040930 skywalker77 B June 3, 2024, 5:48 p.m. OK PyPy 3 TESTS 3 218 6860800
264040635 liu_ming B June 3, 2024, 5:46 p.m. OK PyPy 3-64 TESTS 3 77 1945600
264036580 yer_06 B June 3, 2024, 5:16 p.m. OK PyPy 3-64 TESTS 3 108 2252800
264047766 sangeeta B June 3, 2024, 6:53 p.m. OK PyPy 3-64 TESTS 3 108 3481600
264038829 Artemistic B June 3, 2024, 5:31 p.m. OK PyPy 3-64 TESTS 3 108 3584000
264080179 shiguang12318 B June 4, 2024, 4:44 a.m. OK PyPy 3-64 TESTS 3 108 3686400
264042510 gardengnome B June 3, 2024, 6:03 p.m. OK PyPy 3-64 TESTS 3 109 1945600
264070960 fightinggoose B June 4, 2024, 2:13 a.m. OK PyPy 3-64 TESTS 3 109 2560000
264084468 escapee25 B June 4, 2024, 5:32 a.m. OK PyPy 3-64 TESTS 3 109 3072000
264066595 USYDLDH B June 4, 2024, 12:40 a.m. OK PyPy 3-64 TESTS 3 109 3276800
264044411 PAG B June 3, 2024, 6:20 p.m. OK PyPy 3-64 TESTS 3 109 3584000
264042074 NATURE04 B June 3, 2024, 5:59 p.m. OK Python 3 TESTS 3 46 0
264041959 AP04 B June 3, 2024, 5:58 p.m. OK Python 3 TESTS 3 46 0
264085292 Aditya_Metkar B June 4, 2024, 5:40 a.m. OK Python 3 TESTS 3 62 0
264072990 hejiye B June 4, 2024, 2:50 a.m. OK Python 3 TESTS 3 62 0
264050066 montassarbf B June 3, 2024, 7:17 p.m. OK Python 3 TESTS 3 62 0
264035167 rishabh_sankla B June 3, 2024, 5:08 p.m. OK Python 3 TESTS 3 62 0
264085397 Communism B June 4, 2024, 5:42 a.m. OK Python 3 TESTS 3 77 0
264072276 chilly_code1909 B June 4, 2024, 2:37 a.m. OK Python 3 TESTS 3 77 0
264057711 noob_sailor B June 3, 2024, 8:54 p.m. OK Python 3 TESTS 3 77 0
264043194 Fahad_119 B June 3, 2024, 6:10 p.m. OK Python 3 TESTS 3 77 0
264037581 0x81 B June 3, 2024, 5:22 p.m. OK Ruby 3 TESTS 3 358 1433600
264071329 SnowballSH B June 4, 2024, 2:21 a.m. OK Rust 2021 TESTS 3 46 0
264059489 vstiff B June 3, 2024, 9:26 p.m. OK Rust 2021 TESTS 3 46 0
264054214 edwinedwin B June 3, 2024, 8:05 p.m. OK Rust 2021 TESTS 3 46 0
264038196 edwinedwin B June 3, 2024, 5:26 p.m. OK Rust 2021 TESTS 3 46 0

remove filters

Back to search problems