Codeforces Round 886 (Div. 4)

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
1850 Codeforces Round 886 (Div. 4) FINISHED False 7200 47229863 July 21, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 44331 ) B Ten Words of Wisdom PROGRAMMING implementation sortings

B'In the game show "Ten Words of Wisdom", there are n participants numbered from 1 to n , each of whom submits one response. The i -th response is a_i words long and has quality b_i . No two responses have the same quality, and at least one response has length at most 10 . The winner of the show is the response which has the highest quality out of all responses that are not longer than 10 words. Which response is the winner? The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= q n <= q 50 ) -- the number of responses. Then n lines follow, the i -th of which contains two integers a_i and b_i ( 1 <= q a_i, b_i <= q 50 ) -- the number of words and the quality of the i -th response, respectively. Additional constraints on the input: in each test case, at least one value of i satisfies a_i <= q 10 , and all values of b_i are distinct. For each test case, output a single line containing one integer x ( 1 <= q x <= q n ) -- the winner of the show, according to the rules given in the statement. It can be shown that, according to the constraints in the statement, exactly one winner exists for each test case. In the first test case, the responses provided are as follows: We can see that the responses with indices 1 , 3 , 4 , and 5 have lengths not exceeding 10 words. Out of these responses, the winner is the one with the highest quality. Comparing the qualities, we find that: Among these responses, Response 4 has the highest quality. '...

Tutorials

Codeforces Round #886 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
215015444 prakhar7472pk B July 22, 2023, 8:21 a.m. OK C# 10 TESTS 5 46 614400
215063741 serj.planet1 B July 22, 2023, 3:22 p.m. OK C# 10 TESTS 5 46 1126400
215116782 mostafa_atef B July 23, 2023, 2:16 a.m. OK C# 10 TESTS 5 62 1126400
215020980 aadarshaheb.singh B July 22, 2023, 9:04 a.m. OK Clang++17 Diagnostics TESTS 5 30 4198400
215021439 aadarshaheb.singh B July 22, 2023, 9:08 a.m. OK Clang++17 Diagnostics TESTS 5 31 0
215114063 emitter26 B July 23, 2023, 1:24 a.m. OK Clang++20 Diagnostics TESTS 5 31 0
215053855 noob.exe B July 22, 2023, 2:13 p.m. OK Clang++20 Diagnostics TESTS 5 31 0
215098496 ansh737 B July 22, 2023, 8:14 p.m. OK Clang++20 Diagnostics TESTS 5 46 0
215108903 VincentTran B July 22, 2023, 11:16 p.m. OK Clang++20 Diagnostics TESTS 5 46 4198400
215017138 NenadDapic B July 22, 2023, 8:35 a.m. OK FPC TESTS 5 15 0
215025144 san.agarwal B July 22, 2023, 9:36 a.m. OK GNU C11 TESTS 5 15 0
215029320 m_rahman B July 22, 2023, 10:20 a.m. OK GNU C11 TESTS 5 15 0
215055081 Trashy-Weak-Kid B July 22, 2023, 2:22 p.m. OK GNU C11 TESTS 5 15 0
215063397 Geethika12 B July 22, 2023, 3:20 p.m. OK GNU C11 TESTS 5 15 0
215067776 ranaruetcse21 B July 22, 2023, 3:49 p.m. OK GNU C11 TESTS 5 15 0
215073708 Md-Dipu B July 22, 2023, 4:28 p.m. OK GNU C11 TESTS 5 15 0
215076966 Leoknowstheway B July 22, 2023, 4:50 p.m. OK GNU C11 TESTS 5 15 0
215081716 ritilranjan B July 22, 2023, 5:28 p.m. OK GNU C11 TESTS 5 15 0
215084839 Rahat94 B July 22, 2023, 5:54 p.m. OK GNU C11 TESTS 5 15 0
215091508 naimPAiNamp B July 22, 2023, 6:53 p.m. OK GNU C11 TESTS 5 15 0
215130394 wwwyq07 B July 23, 2023, 6:02 a.m. OK GNU C++14 TESTS 5 0 0
215115902 XJ2023 B July 23, 2023, 2 a.m. OK GNU C++14 TESTS 5 0 0
215116671 Li_yi_hang B July 23, 2023, 2:15 a.m. OK GNU C++14 TESTS 5 0 0
215116729 Li_yi_hang B July 23, 2023, 2:16 a.m. OK GNU C++14 TESTS 5 0 0
215116767 Li_yi_hang B July 23, 2023, 2:16 a.m. OK GNU C++14 TESTS 5 0 0
215119138 zly2009 B July 23, 2023, 2:58 a.m. OK GNU C++14 TESTS 5 0 0
215120060 _fengxiaoyi B July 23, 2023, 3:14 a.m. OK GNU C++14 TESTS 5 0 0
215121933 wyh20110413 B July 23, 2023, 3:46 a.m. OK GNU C++14 TESTS 5 0 0
215125385 Lihg B July 23, 2023, 4:51 a.m. OK GNU C++14 TESTS 5 0 0
215127202 YZPAK B July 23, 2023, 5:21 a.m. OK GNU C++14 TESTS 5 0 0
215129736 Bhuiyan. B July 23, 2023, 5:55 a.m. OK GNU C++17 TESTS 5 0 0
215129357 coo_kie B July 23, 2023, 5:50 a.m. OK GNU C++17 TESTS 5 0 0
215126225 zafucowhorse B July 23, 2023, 5:06 a.m. OK GNU C++17 TESTS 5 0 0
215125733 lqh2022 B July 23, 2023, 4:57 a.m. OK GNU C++17 TESTS 5 0 0
215125576 abhishekkumar20 B July 23, 2023, 4:55 a.m. OK GNU C++17 TESTS 5 0 0
215125193 Harmony666 B July 23, 2023, 4:48 a.m. OK GNU C++17 TESTS 5 0 0
215122867 rgb123 B July 23, 2023, 4:04 a.m. OK GNU C++17 TESTS 5 0 0
215122190 daikaduc B July 23, 2023, 3:51 a.m. OK GNU C++17 TESTS 5 0 0
215122028 Ywave B July 23, 2023, 3:48 a.m. OK GNU C++17 TESTS 5 0 0
215120822 vinh_nguyen B July 23, 2023, 3:26 a.m. OK GNU C++17 TESTS 5 0 0
215064108 sanchit.chaba B July 22, 2023, 3:25 p.m. OK GNU C++17 (64) TESTS 5 0 0
215116237 OTTFF B July 23, 2023, 2:07 a.m. OK GNU C++17 (64) TESTS 5 0 0
215099467 poor_nour B July 22, 2023, 8:27 p.m. OK GNU C++17 (64) TESTS 5 0 0
215099209 siddhanthole74 B July 22, 2023, 8:23 p.m. OK GNU C++17 (64) TESTS 5 0 0
215098390 dag_weg B July 22, 2023, 8:12 p.m. OK GNU C++17 (64) TESTS 5 0 0
215094749 Perseus. B July 22, 2023, 7:28 p.m. OK GNU C++17 (64) TESTS 5 0 0
215089005 Vax B July 22, 2023, 6:29 p.m. OK GNU C++17 (64) TESTS 5 0 0
215082248 Nika. B July 22, 2023, 5:33 p.m. OK GNU C++17 (64) TESTS 5 0 0
215078110 efishel B July 22, 2023, 4:59 p.m. OK GNU C++17 (64) TESTS 5 0 0
215073225 Fayxx B July 22, 2023, 4:25 p.m. OK GNU C++17 (64) TESTS 5 0 0
215126844 gigaby8 B July 23, 2023, 5:16 a.m. OK GNU C++20 (64) TESTS 5 0 0
215126867 arjun752 B July 23, 2023, 5:16 a.m. OK GNU C++20 (64) TESTS 5 0 0
215127486 Knst27 B July 23, 2023, 5:25 a.m. OK GNU C++20 (64) TESTS 5 0 0
215127512 Rainandbow B July 23, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 5 0 0
215127602 xiaoliu.cc B July 23, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 5 0 0
215128417 KruNULL B July 23, 2023, 5:38 a.m. OK GNU C++20 (64) TESTS 5 0 0
215129255 knightstour B July 23, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 5 0 0
215129503 madhav_23 B July 23, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 5 0 0
215129938 JustMahmoud B July 23, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 5 0 0
215130379 dohyunii B July 23, 2023, 6:02 a.m. OK GNU C++20 (64) TESTS 5 0 0
215051470 shisanyue B July 22, 2023, 1:55 p.m. OK Go TESTS 5 15 102400
215082490 xodeChemist B July 22, 2023, 5:35 p.m. OK Go TESTS 5 30 0
215112051 etian6795 B July 23, 2023, 12:38 a.m. OK Java 11 TESTS 5 186 0
215119434 polsage B July 23, 2023, 3:03 a.m. OK Java 11 TESTS 5 186 0
215050667 ananya_s_s B July 22, 2023, 1:49 p.m. OK Java 11 TESTS 5 187 0
215089234 JaxLiu B July 22, 2023, 6:31 p.m. OK Java 11 TESTS 5 187 0
215022808 ananya_s_s B July 22, 2023, 9:18 a.m. OK Java 11 TESTS 5 187 0
215013423 bhavesh1914 B July 22, 2023, 8:07 a.m. OK Java 11 TESTS 5 202 0
215097792 Marcos... B July 22, 2023, 8:05 p.m. OK Java 11 TESTS 5 202 0
215023593 tgd1115 B July 22, 2023, 9:24 a.m. OK Java 11 TESTS 5 202 0
215070778 Suraj1607 B July 22, 2023, 4:08 p.m. OK Java 17 TESTS 5 140 307200
215081519 kishu007 B July 22, 2023, 5:27 p.m. OK Java 17 TESTS 5 155 102400
215050132 tbs-jyy B July 22, 2023, 1:46 p.m. OK Java 17 TESTS 5 156 0
215064224 Vrutik_2809 B July 22, 2023, 3:25 p.m. OK Java 17 TESTS 5 170 102400
215013310 coder0687 B July 22, 2023, 8:06 a.m. OK Java 17 TESTS 5 171 716800
215114139 ShresCodes B July 23, 2023, 1:26 a.m. OK Java 17 TESTS 5 171 819200
215051147 sorceress06 B July 22, 2023, 1:53 p.m. OK Java 17 TESTS 5 202 0
215071553 priyanshu.sharma2612 B July 22, 2023, 4:14 p.m. OK Java 17 TESTS 5 202 102400
215098558 Bluewise B July 22, 2023, 8:15 p.m. OK Java 17 TESTS 5 202 614400
215053278 goalboy B July 22, 2023, 2:09 p.m. OK Java 17 TESTS 5 218 409600
215115316 blm B July 23, 2023, 1:49 a.m. OK Java 8 TESTS 5 77 0
215067193 vijay_panwar12 B July 22, 2023, 3:46 p.m. OK Java 8 TESTS 5 92 0
215090780 dogranmol B July 22, 2023, 6:46 p.m. OK Java 8 TESTS 5 93 0
215026087 Harshit_3905 B July 22, 2023, 9:46 a.m. OK Java 8 TESTS 5 93 0
215058016 ahmed.elbakly Talaat-Jr B July 22, 2023, 2:44 p.m. OK Java 8 TESTS 5 108 0
215014569 SilveryZz B July 22, 2023, 8:14 a.m. OK Java 8 TESTS 5 108 0
215116232 Ziran3234 B July 23, 2023, 2:07 a.m. OK Java 8 TESTS 5 109 0
215014961 nibras2002 B July 22, 2023, 8:17 a.m. OK Java 8 TESTS 5 109 0
215084373 ChazWinter B July 22, 2023, 5:50 p.m. OK Java 8 TESTS 5 124 0
215080635 RidWain101 B July 22, 2023, 5:19 p.m. OK Java 8 TESTS 5 124 0
215020612 sarwaaman B July 22, 2023, 9:01 a.m. OK MS C++ 2017 TESTS 5 15 0
215122534 MengXn B July 23, 2023, 3:57 a.m. OK MS C++ 2017 TESTS 5 15 0
215091658 Saif_eldin B July 22, 2023, 6:55 p.m. OK MS C++ 2017 TESTS 5 15 0
215071545 Codingsucksbutmakesmoney B July 22, 2023, 4:14 p.m. OK MS C++ 2017 TESTS 5 15 0
215059413 bawangbieji B July 22, 2023, 2:54 p.m. OK MS C++ 2017 TESTS 5 15 0
215053364 zjnT04 B July 22, 2023, 2:10 p.m. OK MS C++ 2017 TESTS 5 15 0
215022050 sarwaaman B July 22, 2023, 9:13 a.m. OK MS C++ 2017 TESTS 5 15 0
215071354 qm1203606678 B July 22, 2023, 4:12 p.m. OK MS C++ 2017 TESTS 5 15 102400
215073275 max000 B July 22, 2023, 4:25 p.m. OK MS C++ 2017 TESTS 5 31 0
215098700 Abdullah_Mahmoud B July 22, 2023, 8:16 p.m. OK MS C++ 2017 TESTS 5 31 0
215073693 0xROoT B July 22, 2023, 4:28 p.m. OK PyPy 3 TESTS 5 93 1843200
215066965 Denis_D B July 22, 2023, 3:44 p.m. OK PyPy 3 TESTS 5 109 2867200
215097457 Metros B July 22, 2023, 8:01 p.m. OK PyPy 3 TESTS 5 109 2969600
215048684 urparvezali B July 22, 2023, 1:36 p.m. OK PyPy 3 TESTS 5 124 2867200
215080404 zainijunaid8228 B July 22, 2023, 5:18 p.m. OK PyPy 3 TESTS 5 124 2867200
215051280 _0Istahak B July 22, 2023, 1:54 p.m. OK PyPy 3 TESTS 5 139 2867200
215075864 Heldash B July 22, 2023, 4:43 p.m. OK PyPy 3 TESTS 5 139 2867200
215022135 lol_py B July 22, 2023, 9:13 a.m. OK PyPy 3 TESTS 5 140 2867200
215050840 alhad21445 B July 22, 2023, 1:51 p.m. OK PyPy 3 TESTS 5 140 3481600
215102410 abhay_codes B July 22, 2023, 9:07 p.m. OK PyPy 3 TESTS 5 140 3686400
215060033 eternal_happiness B July 22, 2023, 2:57 p.m. OK PyPy 3-64 TESTS 5 61 1740800
215077278 oneku16 B July 22, 2023, 4:52 p.m. OK PyPy 3-64 TESTS 5 61 1945600
215049873 dhruv1807 B July 22, 2023, 1:44 p.m. OK PyPy 3-64 TESTS 5 61 2150400
215115151 jamerrq B July 23, 2023, 1:46 a.m. OK PyPy 3-64 TESTS 5 61 2457600
215077920 oneku16 B July 22, 2023, 4:57 p.m. OK PyPy 3-64 TESTS 5 62 1638400
215077838 oneku16 B July 22, 2023, 4:56 p.m. OK PyPy 3-64 TESTS 5 62 1638400
215127900 I_Am_That B July 23, 2023, 5:31 a.m. OK PyPy 3-64 TESTS 5 62 1740800
215107065 RussDT B July 22, 2023, 10:30 p.m. OK PyPy 3-64 TESTS 5 77 2355200
215065424 Marco_Lau B July 22, 2023, 3:33 p.m. OK PyPy 3-64 TESTS 5 77 3072000
215103291 tu144x B July 22, 2023, 9:23 p.m. OK PyPy 3-64 TESTS 5 77 4505600
215076213 MutedSolace B July 22, 2023, 4:45 p.m. OK Python 3 TESTS 5 30 0
215121648 chnaveen B July 23, 2023, 3:40 a.m. OK Python 3 TESTS 5 30 0
215111276 sarath_gandla B July 23, 2023, 12:17 a.m. OK Python 3 TESTS 5 30 0
215106113 yourEmotion B July 22, 2023, 10:09 p.m. OK Python 3 TESTS 5 30 0
215071458 217r1a1248 B July 22, 2023, 4:13 p.m. OK Python 3 TESTS 5 30 0
215125739 ysrlx B July 23, 2023, 4:58 a.m. OK Python 3 TESTS 5 31 0
215109927 amanueltsehay11 B July 22, 2023, 11:42 p.m. OK Python 3 TESTS 5 31 0
215107469 saly.ea B July 22, 2023, 10:41 p.m. OK Python 3 TESTS 5 31 0
215103643 m7md_3llam B July 22, 2023, 9:28 p.m. OK Python 3 TESTS 5 31 0
215100304 naodmulu B July 22, 2023, 8:37 p.m. OK Python 3 TESTS 5 31 0
215064538 ilyshana B July 22, 2023, 3:28 p.m. OK Rust 2021 TESTS 5 0 0
215106047 lucbarn B July 22, 2023, 10:07 p.m. OK Rust 2021 TESTS 5 15 0
215099346 TimaFrolov B July 22, 2023, 8:25 p.m. OK Rust 2021 TESTS 5 15 0

remove filters

Back to search problems