Educational Codeforces Round 147 (Rated for Div. 2)

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
1821 Educational Codeforces Round 147 (Rated for Div. 2) FINISHED False 7200 55265063 April 20, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19732 ) B Sort the Subarray PROGRAMMING brute force greedy

B"Monocarp had an array a consisting of n integers. He has decided to choose two integers l and r such that 1 <= l <= r <= n , and then sort the subarray a[l..r] (the subarray a[l..r] is the part of the array a containing the elements a_l, a_{l+1}, a_{l+2}, ... , a_{r-1}, a_r ) in non-descending order. After sorting the subarray, Monocarp has obtained a new array, which we denote as a' . For example, if a = [6, 7, 3, 4, 4, 6, 5] , and Monocarp has chosen l = 2, r = 5 , then a' = [6, 3, 4, 4, 7, 6, 5] . You are given the arrays a and a' . Find the integers l and r that Monocarp could have chosen. If there are multiple pairs of values (l, r) , find the one which corresponds to the longest subarray. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of three lines: Additional constraints on the input: For each test case, print two integers -- the values of l and r ( 1 <= l <= r <= n ). If there are multiple answers, print the values that correspond to the longest subarray. If there are still multiple answers, print any of them. "...

Tutorials

115296

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
202908194 bluemegane B April 21, 2023, 12:44 a.m. OK C# 8 TESTS 10 186 30105600
202967014 jainarchit1604 B April 21, 2023, 3:21 p.m. OK Clang++17 Diagnostics TESTS 10 1606 1638400
203000978 worthlessperson B April 22, 2023, 2:24 a.m. OK Clang++17 Diagnostics TESTS 10 1637 2048000
202989631 Mishra_09 B April 21, 2023, 8:51 p.m. OK Clang++17 Diagnostics TESTS 10 1715 7372800
202927168 Kuro_Muzuki B April 21, 2023, 6:42 a.m. OK Clang++20 Diagnostics TESTS 10 1606 2048000
202944666 pnS73fm B April 21, 2023, 10:42 a.m. OK GNU C11 TESTS 10 93 1638400
202949543 qq2rw3 B April 21, 2023, 11:53 a.m. OK GNU C11 TESTS 10 108 1536000
202888472 jiangbx B April 20, 2023, 5:30 p.m. OK GNU C11 TESTS 10 108 1638400
203001907 luogu_bot5 B April 22, 2023, 2:50 a.m. OK GNU C++14 TESTS 10 77 1638400
202912173 cryingrain B April 21, 2023, 2:40 a.m. OK GNU C++14 TESTS 10 78 1638400
202907794 XuzhenV B April 21, 2023, 12:31 a.m. OK GNU C++14 TESTS 10 78 1638400
202890046 mahir1 B April 20, 2023, 5:48 p.m. OK GNU C++14 TESTS 10 78 1638400
202913651 proveus19 B April 21, 2023, 3:14 a.m. OK GNU C++14 TESTS 10 78 1638400
202927671 RnMnBtTime B April 21, 2023, 6:47 a.m. OK GNU C++14 TESTS 10 78 1638400
202934620 lqr2018 B April 21, 2023, 8:24 a.m. OK GNU C++14 TESTS 10 78 1638400
202890076 udta_kouwa B April 20, 2023, 5:49 p.m. OK GNU C++14 TESTS 10 78 2457600
202886362 ninoaddict_ B April 20, 2023, 5:09 p.m. OK GNU C++14 TESTS 10 78 3174400
202906791 fjashufi B April 20, 2023, 11:55 p.m. OK GNU C++14 TESTS 10 78 4812800
202902263 FARAJI B April 20, 2023, 9:34 p.m. OK GNU C++17 TESTS 10 77 1638400
202890854 brainsoft B April 20, 2023, 5:58 p.m. OK GNU C++17 TESTS 10 77 1638400
202885461 _youssef_waheed_ B April 20, 2023, 5:01 p.m. OK GNU C++17 TESTS 10 77 1638400
203004574 yeyuotc B April 22, 2023, 3:56 a.m. OK GNU C++17 TESTS 10 77 1638400
202978967 Naman_Agarwal_03 B April 21, 2023, 5:51 p.m. OK GNU C++17 TESTS 10 77 1638400
202957838 schrodinger101 B April 21, 2023, 1:35 p.m. OK GNU C++17 TESTS 10 77 1638400
202951690 Longqiang B April 21, 2023, 12:23 p.m. OK GNU C++17 TESTS 10 77 3174400
202891264 lOthBroK286 B April 20, 2023, 6:02 p.m. OK GNU C++17 TESTS 10 77 6451200
202993427 binarysolver B April 21, 2023, 10:31 p.m. OK GNU C++17 TESTS 10 78 1638400
202990226 Yousef_Sameh B April 21, 2023, 9:04 p.m. OK GNU C++17 TESTS 10 78 1638400
202889868 Rick B April 20, 2023, 5:46 p.m. OK GNU C++17 (64) TESTS 10 46 1638400
202911920 notyour_young B April 21, 2023, 2:33 a.m. OK GNU C++17 (64) TESTS 10 46 1638400
202904478 Rocket13 B April 20, 2023, 10:34 p.m. OK GNU C++17 (64) TESTS 10 46 1638400
202897533 FACELESSgod B April 20, 2023, 7:43 p.m. OK GNU C++17 (64) TESTS 10 46 3174400
202912460 weakestOsuPlayer_244 B April 21, 2023, 2:47 a.m. OK GNU C++17 (64) TESTS 10 46 3174400
202898516 drizzle_codes B April 20, 2023, 8:04 p.m. OK GNU C++17 (64) TESTS 10 46 3174400
202922710 Eman_Nasser B April 21, 2023, 5:59 a.m. OK GNU C++17 (64) TESTS 10 61 1638400
202952150 Stanislau B April 21, 2023, 12:29 p.m. OK GNU C++17 (64) TESTS 10 61 1638400
202959847 Hi-TechMissile B April 21, 2023, 1:57 p.m. OK GNU C++17 (64) TESTS 10 61 1638400
202977050 Owmicron B April 21, 2023, 5:25 p.m. OK GNU C++17 (64) TESTS 10 61 1638400
203008641 Zhouershan B April 22, 2023, 5:10 a.m. OK GNU C++20 (64) TESTS 10 15 3993600
202906365 rashed_raihan B April 20, 2023, 11:40 p.m. OK GNU C++20 (64) TESTS 10 31 3174400
203002391 Gats B April 22, 2023, 3:03 a.m. OK GNU C++20 (64) TESTS 10 46 1638400
203001085 ask_aka B April 22, 2023, 2:27 a.m. OK GNU C++20 (64) TESTS 10 46 1638400
202996249 Dr.rabi3 B April 21, 2023, 11:59 p.m. OK GNU C++20 (64) TESTS 10 46 1638400
202993445 Djangoo B April 21, 2023, 10:32 p.m. OK GNU C++20 (64) TESTS 10 46 1638400
202992194 hridoy.cse.20220104019 B April 21, 2023, 9:55 p.m. OK GNU C++20 (64) TESTS 10 46 1638400
203004875 nadaAtef B April 22, 2023, 4:03 a.m. OK GNU C++20 (64) TESTS 10 46 1638400
203004725 Andrfed B April 22, 2023, 4 a.m. OK GNU C++20 (64) TESTS 10 46 1638400
203006245 arpitkus B April 22, 2023, 4:28 a.m. OK GNU C++20 (64) TESTS 10 46 1638400
202887126 harsh.awasthi B April 20, 2023, 5:16 p.m. OK Go TESTS 10 155 6963200
202946703 liangjiahui11 B April 21, 2023, 11:12 a.m. OK Go TESTS 10 171 7475200
202890209 vijender_8601 B April 20, 2023, 5:50 p.m. OK Java 11 TESTS 10 265 819200
202963052 NithinBharathi B April 21, 2023, 2:34 p.m. OK Java 11 TESTS 10 327 921600
202916777 kasiru_69 B April 21, 2023, 4:27 a.m. OK Java 11 TESTS 10 343 819200
202983984 giridhrubajyoti2002 B April 21, 2023, 7:04 p.m. OK Java 11 TESTS 10 358 16179200
202886340 Yousef_Badr B April 20, 2023, 5:09 p.m. OK Java 11 TESTS 10 389 921600
202981791 Ankita1129 B April 21, 2023, 6:28 p.m. OK Java 11 TESTS 10 405 921600
202902002 pranp_24 B April 20, 2023, 9:28 p.m. OK Java 11 TESTS 10 514 102400
202885118 reddy3318 B April 20, 2023, 4:58 p.m. OK Java 11 TESTS 10 763 307200
202929210 rated21 B April 21, 2023, 7:08 a.m. OK Java 17 TESTS 10 264 1126400
202937171 Hawater B April 21, 2023, 8:58 a.m. OK Java 17 TESTS 10 280 1536000
202892340 ADust B April 20, 2023, 6:18 p.m. OK Java 17 TESTS 10 280 1740800
202989700 Creator_321 B April 21, 2023, 8:52 p.m. OK Java 17 TESTS 10 280 16896000
202989438 Black-Heart B April 21, 2023, 8:47 p.m. OK Java 17 TESTS 10 280 17715200
202891298 Suraj1607 B April 20, 2023, 6:03 p.m. OK Java 17 TESTS 10 295 819200
202928920 1isGreaterThan0 B April 21, 2023, 7:04 a.m. OK Java 17 TESTS 10 295 1843200
202923971 Varun_tec B April 21, 2023, 6:11 a.m. OK Java 17 TESTS 10 296 2150400
202893583 TJ_Codes B April 20, 2023, 6:33 p.m. OK Java 17 TESTS 10 311 1228800
202975164 sameershaik B April 21, 2023, 5 p.m. OK Java 17 TESTS 10 326 44646400
202914538 yadavDipesh B April 21, 2023, 3:36 a.m. OK Java 8 TESTS 10 140 6144000
202909585 Camellia- B April 21, 2023, 1:26 a.m. OK Java 8 TESTS 10 155 0
202975673 lpychemistry B April 21, 2023, 5:07 p.m. OK Java 8 TESTS 10 170 0
202913108 chuquwan9964 B April 21, 2023, 3 a.m. OK Java 8 TESTS 10 170 0
202898813 NerfThis B April 20, 2023, 8:11 p.m. OK Java 8 TESTS 10 171 6246400
202899322 pra1hamgup1a B April 20, 2023, 8:23 p.m. OK Java 8 TESTS 10 186 6246400
202896010 Hinnawi24 B April 20, 2023, 7:11 p.m. OK Java 8 TESTS 10 202 6144000
202926116 Akarsh2810 B April 21, 2023, 6:31 a.m. OK Java 8 TESTS 10 202 6246400
202887199 Deependra_coder B April 20, 2023, 5:17 p.m. OK Java 8 TESTS 10 218 7782400
202943697 Camellia- B April 21, 2023, 10:27 a.m. OK Java 8 TESTS 10 280 0
202930676 StinsonOvO B April 21, 2023, 7:30 a.m. OK Kotlin 1.6 TESTS 10 514 27238400
202933666 eneskayiklik B April 21, 2023, 8:12 a.m. OK Kotlin 1.7 TESTS 10 420 9113600
202930611 StinsonOvO B April 21, 2023, 7:29 a.m. OK Kotlin 1.7 TESTS 10 1029 136089600
202917938 ykchen03 B April 21, 2023, 4:50 a.m. OK MS C++ 2017 TESTS 10 109 2662400
202942005 Vi1689 B April 21, 2023, 10:02 a.m. OK MS C++ 2017 TESTS 10 343 1843200
202887646 EbuYandex B April 20, 2023, 5:22 p.m. OK MS C++ 2017 TESTS 10 358 6451200
202902446 mukhaledd B April 20, 2023, 9:39 p.m. OK MS C++ 2017 TESTS 10 389 1638400
202927812 devanshbatra B April 21, 2023, 6:49 a.m. OK MS C++ 2017 TESTS 10 420 3072000
202935651 Varun_2K B April 21, 2023, 8:37 a.m. OK MS C++ 2017 TESTS 10 546 4096000
202909931 dorissssy B April 21, 2023, 1:37 a.m. OK PyPy 3 TESTS 10 670 18022400
202973940 Sudarshana B April 21, 2023, 4:44 p.m. OK PyPy 3 TESTS 10 685 20684800
202972191 vivekkamal B April 21, 2023, 4:22 p.m. OK PyPy 3 TESTS 10 716 17920000
202949818 Shisuko B April 21, 2023, 11:57 a.m. OK PyPy 3 TESTS 10 717 19148800
202981673 jvatsal0709 B April 21, 2023, 6:26 p.m. OK PyPy 3 TESTS 10 732 20684800
202909113 Aldibek B April 21, 2023, 1:12 a.m. OK PyPy 3 TESTS 10 888 18636800
202910510 alpy123 B April 21, 2023, 1:55 a.m. OK PyPy 3 TESTS 10 1138 83865600
203010633 yxu18yxu18 B April 22, 2023, 5:42 a.m. OK PyPy 3 TESTS 10 1418 17920000
202940449 gardengnome B April 21, 2023, 9:42 a.m. OK PyPy 3-64 TESTS 10 170 30515200
202970832 sameershaik B April 21, 2023, 4:06 p.m. OK PyPy 3-64 TESTS 10 171 26214400
202893528 SophieHatter B April 20, 2023, 6:32 p.m. OK PyPy 3-64 TESTS 10 171 34816000
202960627 HimanshuRajput B April 21, 2023, 2:05 p.m. OK PyPy 3-64 TESTS 10 186 26419200
202914865 gardengnome B April 21, 2023, 3:45 a.m. OK PyPy 3-64 TESTS 10 187 31436800
202943042 YaoBIG B April 21, 2023, 10:17 a.m. OK PyPy 3-64 TESTS 10 202 33177600
202887755 Khatarnak_Khandu B April 20, 2023, 5:23 p.m. OK PyPy 3-64 TESTS 10 217 34508800
202982092 kavorka B April 21, 2023, 6:32 p.m. OK PyPy 3-64 TESTS 10 218 25600000
202898864 jerome_coding B April 20, 2023, 8:13 p.m. OK PyPy 3-64 TESTS 10 218 28876800
202891738 lfss_zxj B April 20, 2023, 6:10 p.m. OK PyPy 3-64 TESTS 10 218 30720000
202910905 biltharesatyendra B April 21, 2023, 2:06 a.m. OK Python 2 TESTS 10 265 15052800
202910946 zzf8540 B April 21, 2023, 2:07 a.m. OK Python 3 TESTS 10 249 17612800
202892191 tanishq2507 B April 20, 2023, 6:17 p.m. OK Python 3 TESTS 10 296 17715200
202888302 quad_wipe B April 20, 2023, 5:28 p.m. OK Python 3 TESTS 10 296 17715200
202912010 eeveeislove B April 21, 2023, 2:36 a.m. OK Python 3 TESTS 10 311 17920000
202928506 sairamyadhav3 B April 21, 2023, 6:58 a.m. OK Python 3 TESTS 10 312 17817600
202941243 Block_Cipher B April 21, 2023, 9:52 a.m. OK Python 3 TESTS 10 327 18534400
202885334 BabyBlue0514 B April 20, 2023, 5 p.m. OK Python 3 TESTS 10 342 18432000
202977049 R35007 B April 21, 2023, 5:25 p.m. OK Python 3 TESTS 10 343 17612800
202902257 myyan92 B April 20, 2023, 9:34 p.m. OK Python 3 TESTS 10 358 25497600
202957824 Stan_Jason B April 21, 2023, 1:34 p.m. OK Python 3 TESTS 10 373 17817600
202915789 cpchenpi B April 21, 2023, 4:08 a.m. OK Rust 2021 TESTS 10 15 7475200
202950334 ilyshana B April 21, 2023, 12:05 p.m. OK Rust 2021 TESTS 10 31 6451200
202959230 p-a-t B April 21, 2023, 1:49 p.m. OK Rust 2021 TESTS 10 46 3174400
202958555 SGHD B April 21, 2023, 1:41 p.m. OK Rust 2021 TESTS 10 124 6451200
202976061 sameershaik B April 21, 2023, 5:12 p.m. OK Rust 2021 TESTS 10 139 5222400

remove filters

Back to search problems