Educational Codeforces Round 150 (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
1841 Educational Codeforces Round 150 (Rated for Div. 2) FINISHED False 7200 45242699 June 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21628 ) B Keep it Beautiful PROGRAMMING implementation strings

B'The array [a_1, a_2, ... , a_k] is called beautiful if it is possible to remove several (maybe zero) elements from the beginning of the array and insert all these elements to the back of the array in the same order in such a way that the resulting array is sorted in non-descending order. In other words, the array [a_1, a_2, ... , a_k] is beautiful if there exists an integer i in [0, k-1] such that the array [a_{i+1}, a_{i+2}, ... , a_{k-1}, a_k, a_1, a_2, ... , a_i] is sorted in non-descending order. For example: Note that any array consisting of zero elements or one element is beautiful. You are given an array a , which is initially empty. You have to process q queries to it. During the i -th query, you will be given one integer x_i , and you have to do the following: After each query, report whether you appended the given integer x_i , or not. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of two lines. The first line contains one integer q ( 1 <= q <= 2 cdot 10^5 ) -- the number of queries. The second line contains q integers x_1, x_2, ... , x_q ( 0 <= x_i <= 10^9 ). Additional constraint on the input: the sum of q over all test cases does not exceed 2 cdot 10^5 ). For each test case, print one string consisting of exactly q characters. The i -th character of the string should be 1 if you appended the integer during the i -th query; otherwise, it should be 0. Consider the first test case of the example. Initially, the array is [] . '...

Tutorials

117262

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
209486890 IleksaNott B June 12, 2023, 6:28 p.m. OK C# 10 TESTS 10 93 20787200
209494000 johann_liebert B June 12, 2023, 7:57 p.m. OK C# 10 TESTS 10 608 16076800
209504717 bluemegane B June 13, 2023, 12:32 a.m. OK C# 8 TESTS 10 124 18022400
209476925 2847940240 B June 12, 2023, 5 p.m. OK Clang++20 Diagnostics TESTS 10 982 13004800
209497126 BillEvagg B June 12, 2023, 8:50 p.m. OK Clang++20 Diagnostics TESTS 10 1014 13004800
209497389 BillEvagg B June 12, 2023, 8:56 p.m. OK Clang++20 Diagnostics TESTS 10 1029 14643200
209497535 BillEvagg B June 12, 2023, 8:58 p.m. OK Clang++20 Diagnostics TESTS 10 1091 14643200
209474321 maruf_bro B June 12, 2023, 4:44 p.m. OK GNU C11 TESTS 10 78 204800
209471919 Saketh_Kumar23 B June 12, 2023, 4:34 p.m. OK GNU C11 TESTS 10 78 204800
209499989 vanishedO_o B June 12, 2023, 9:54 p.m. OK GNU C11 TESTS 10 795 2457600
209506513 qiqi_1 B June 13, 2023, 1:22 a.m. OK GNU C11 TESTS 10 811 0
209486143 prattay56 B June 12, 2023, 6:20 p.m. OK GNU C11 TESTS 10 811 819200
209470962 newaz234 B June 12, 2023, 4:33 p.m. OK GNU C11 TESTS 10 826 0
209470225 Mr_chetan.12 B June 12, 2023, 4:32 p.m. OK GNU C11 TESTS 10 842 1024000
209495250 PRIME3015 B June 12, 2023, 8:17 p.m. OK GNU C++14 TESTS 10 46 2252800
209491182 tsangcahya B June 12, 2023, 7:17 p.m. OK GNU C++14 TESTS 10 46 2355200
209516746 dimitri1244 B June 13, 2023, 4:26 a.m. OK GNU C++14 TESTS 10 61 0
209505169 zhs12345 B June 13, 2023, 12:48 a.m. OK GNU C++14 TESTS 10 61 1536000
209481355 Asad5059 B June 12, 2023, 5:35 p.m. OK GNU C++14 TESTS 10 61 1638400
209474041 Bhaumil_Patel_18 B June 12, 2023, 4:43 p.m. OK GNU C++14 TESTS 10 61 1638400
209511194 T-S_2392 B June 13, 2023, 2:49 a.m. OK GNU C++14 TESTS 10 61 1740800
209482126 alphabetacol B June 12, 2023, 5:42 p.m. OK GNU C++14 TESTS 10 61 2150400
209480804 shiv.garg B June 12, 2023, 5:30 p.m. OK GNU C++14 TESTS 10 61 2150400
209480228 mahir1 B June 12, 2023, 5:25 p.m. OK GNU C++14 TESTS 10 61 2457600
209501814 darkandy B June 12, 2023, 10:48 p.m. OK GNU C++17 TESTS 10 46 512000
209521252 Harsh-Bardolia B June 13, 2023, 5:43 a.m. OK GNU C++17 TESTS 10 46 1331200
209499207 ayush31 B June 12, 2023, 9:35 p.m. OK GNU C++17 TESTS 10 46 1331200
209497450 Mohammadalhelue B June 12, 2023, 8:57 p.m. OK GNU C++17 TESTS 10 46 1331200
209478306 nolimitmuhmmed B June 12, 2023, 5:09 p.m. OK GNU C++17 TESTS 10 46 2150400
209471442 satyaprakash75 B June 12, 2023, 4:34 p.m. OK GNU C++17 TESTS 10 46 2150400
209500023 27kashi B June 12, 2023, 9:55 p.m. OK GNU C++17 TESTS 10 46 2969600
209482617 rishabhsangwan046 B June 12, 2023, 5:46 p.m. OK GNU C++17 TESTS 10 46 163225600
209521490 piyush.chauhan1480 B June 13, 2023, 5:46 a.m. OK GNU C++17 TESTS 10 61 0
209516084 vivekgarg2906 B June 13, 2023, 4:15 a.m. OK GNU C++17 TESTS 10 61 204800
209475930 Musfiqur B June 12, 2023, 4:54 p.m. OK GNU C++17 (64) TESTS 10 31 1638400
209510930 AnthonyZ B June 13, 2023, 2:44 a.m. OK GNU C++17 (64) TESTS 10 31 2150400
209484141 The_Destroyer15 B June 12, 2023, 6 p.m. OK GNU C++17 (64) TESTS 10 31 4198400
209513351 Mercersfire B June 13, 2023, 3:28 a.m. OK GNU C++17 (64) TESTS 10 31 4198400
209509959 AceKnight7 B June 13, 2023, 2:29 a.m. OK GNU C++17 (64) TESTS 10 31 6553600
209493097 Hi-TechMissile B June 12, 2023, 7:43 p.m. OK GNU C++17 (64) TESTS 10 46 0
209517535 efficient B June 13, 2023, 4:40 a.m. OK GNU C++17 (64) TESTS 10 46 0
209492270 aakash_gorai B June 12, 2023, 7:31 p.m. OK GNU C++17 (64) TESTS 10 46 512000
209491391 x_CroNoS_x B June 12, 2023, 7:19 p.m. OK GNU C++17 (64) TESTS 10 46 512000
209488384 ankancool B June 12, 2023, 6:43 p.m. OK GNU C++17 (64) TESTS 10 46 512000
209481632 MrNobody65 B June 12, 2023, 5:37 p.m. OK GNU C++20 (64) TESTS 10 30 0
209470007 maspy B June 12, 2023, 4:32 p.m. OK GNU C++20 (64) TESTS 10 30 3788800
209506799 Nightmaresss B June 13, 2023, 1:30 a.m. OK GNU C++20 (64) TESTS 10 30 4505600
209477578 NanYangNanChui B June 12, 2023, 5:04 p.m. OK GNU C++20 (64) TESTS 10 30 5836800
209506103 Marckess B June 13, 2023, 1:13 a.m. OK GNU C++20 (64) TESTS 10 31 0
209512109 chickbecamechicken B June 13, 2023, 3:06 a.m. OK GNU C++20 (64) TESTS 10 31 0
209504306 Py47 B June 13, 2023, 12:18 a.m. OK GNU C++20 (64) TESTS 10 31 0
209516751 Mike_Vu B June 13, 2023, 4:26 a.m. OK GNU C++20 (64) TESTS 10 31 0
209516917 sweet_hope25 B June 13, 2023, 4:29 a.m. OK GNU C++20 (64) TESTS 10 31 0
209513441 Shivam_Dhingra B June 13, 2023, 3:30 a.m. OK GNU C++20 (64) TESTS 10 31 0
209514728 Ivan_Chien B June 13, 2023, 3:52 a.m. OK Go TESTS 10 109 7987200
209511849 RedJACK B June 13, 2023, 3:01 a.m. OK Go TESTS 10 1045 6144000
209510654 loverr B June 13, 2023, 2:40 a.m. OK Java 11 TESTS 10 202 0
209476481 djrfrn B June 12, 2023, 4:57 p.m. OK Java 11 TESTS 10 218 0
209474463 SkyTurtle B June 12, 2023, 4:45 p.m. OK Java 11 TESTS 10 218 0
209469801 themadknight45 B June 12, 2023, 4:31 p.m. OK Java 11 TESTS 10 218 0
209479708 vijender_8601 B June 12, 2023, 5:20 p.m. OK Java 11 TESTS 10 233 0
209471739 Edge_Tree B June 12, 2023, 4:34 p.m. OK Java 11 TESTS 10 233 40755200
209495950 mangos194 B June 12, 2023, 8:28 p.m. OK Java 11 TESTS 10 265 204800
209472890 ttannishh B June 12, 2023, 4:37 p.m. OK Java 11 TESTS 10 327 19558400
209514287 achal5623 B June 13, 2023, 3:45 a.m. OK Java 11 TESTS 10 451 102400
209470513 klu_2000031318 B June 12, 2023, 4:32 p.m. OK Java 11 TESTS 10 467 102400
209483145 jimmyd211 B June 12, 2023, 5:51 p.m. OK Java 17 TESTS 10 171 819200
209484492 Vrutik_2809 B June 12, 2023, 6:04 p.m. OK Java 17 TESTS 10 217 1024000
209522104 ykexc B June 13, 2023, 5:55 a.m. OK Java 17 TESTS 10 217 1126400
209477748 Suraj1607 B June 12, 2023, 5:05 p.m. OK Java 17 TESTS 10 233 1433600
209492327 swatishivam23 B June 12, 2023, 7:32 p.m. OK Java 17 TESTS 10 249 102400
209493956 Abdelrahim303 B June 12, 2023, 7:57 p.m. OK Java 17 TESTS 10 249 921600
209485258 faresbadr316 B June 12, 2023, 6:12 p.m. OK Java 17 TESTS 10 265 921600
209485317 Yousef_Badr B June 12, 2023, 6:12 p.m. OK Java 17 TESTS 10 265 1024000
209473147 daksh_02 B June 12, 2023, 4:38 p.m. OK Java 17 TESTS 10 265 1126400
209489699 ahmed.elbakly B June 12, 2023, 6:59 p.m. OK Java 17 TESTS 10 280 6860800
209509128 Harish_777 B June 13, 2023, 2:16 a.m. OK Java 8 TESTS 10 140 4300800
209477139 SweetAsCocaine B June 12, 2023, 5:01 p.m. OK Java 8 TESTS 10 155 3276800
209505019 I_Need_Alex_R_Coleman B June 13, 2023, 12:42 a.m. OK Java 8 TESTS 10 155 5017600
209506213 xiaoshua B June 13, 2023, 1:15 a.m. OK Java 8 TESTS 10 156 3379200
209477510 SweetAsCocaine B June 12, 2023, 5:04 p.m. OK Java 8 TESTS 10 170 3276800
209502308 harshit_maurya B June 12, 2023, 11:06 p.m. OK Java 8 TESTS 10 202 3276800
209487811 depurador_ik B June 12, 2023, 6:37 p.m. OK Java 8 TESTS 10 217 66560000
209517130 ss8883484 B June 13, 2023, 4:33 a.m. OK Java 8 TESTS 10 373 0
209499726 tiwariaryan20020913 B June 12, 2023, 9:47 p.m. OK Java 8 TESTS 10 389 0
209490110 shivamjadhav40 B June 12, 2023, 7:04 p.m. OK Java 8 TESTS 10 404 0
209469692 Krantzy B June 12, 2023, 4:31 p.m. OK Kotlin 1.7 TESTS 10 733 48844800
209492889 suraj112002 B June 12, 2023, 7:40 p.m. OK MS C++ 2017 TESTS 10 171 1433600
209487704 1_shivam B June 12, 2023, 6:36 p.m. OK MS C++ 2017 TESTS 10 187 614400
209494164 skimono B June 12, 2023, 8 p.m. OK MS C++ 2017 TESTS 10 187 2048000
209473110 GauravKrOO7 B June 12, 2023, 4:38 p.m. OK MS C++ 2017 TESTS 10 187 2048000
209483925 adesh123 B June 12, 2023, 5:59 p.m. OK MS C++ 2017 TESTS 10 202 614400
209495052 rajharshsingh2003 B June 12, 2023, 8:13 p.m. OK MS C++ 2017 TESTS 10 296 2457600
209478949 Iseeuinmyd B June 12, 2023, 5:14 p.m. OK MS C++ 2017 TESTS 10 296 6041600
209480497 wizardrabbit B June 12, 2023, 5:27 p.m. OK PyPy 3 TESTS 10 327 20582400
209469674 rajeshpenugonda B June 12, 2023, 4:31 p.m. OK PyPy 3 TESTS 10 374 19251200
209515252 Dittu B June 13, 2023, 4:01 a.m. OK PyPy 3 TESTS 10 451 19558400
209481353 shriomks B June 12, 2023, 5:35 p.m. OK PyPy 3 TESTS 10 451 19865600
209502568 3arvay B June 12, 2023, 11:16 p.m. OK PyPy 3 TESTS 10 530 19148800
209486973 DHF_20 B June 12, 2023, 6:29 p.m. OK PyPy 3 TESTS 10 576 19046400
209496291 shawnfrost007 B June 12, 2023, 8:34 p.m. OK PyPy 3 TESTS 10 576 19148800
209487032 DHF_20 B June 12, 2023, 6:30 p.m. OK PyPy 3 TESTS 10 577 19148800
209486081 DHF_20 B June 12, 2023, 6:20 p.m. OK PyPy 3 TESTS 10 592 19046400
209507878 Lhohelhohehmm B June 13, 2023, 1:53 a.m. OK PyPy 3-64 TESTS 10 124 21196800
209483872 prasham15 B June 12, 2023, 5:58 p.m. OK PyPy 3-64 TESTS 10 124 27545600
209502918 date3k2 B June 12, 2023, 11:28 p.m. OK PyPy 3-64 TESTS 10 124 30310400
209490456 AndreiZherder B June 12, 2023, 7:08 p.m. OK PyPy 3-64 TESTS 10 139 26009600
209493300 gardengnome B June 12, 2023, 7:47 p.m. OK PyPy 3-64 TESTS 10 140 27750400
209504081 nealzane B June 13, 2023, 12:10 a.m. OK PyPy 3-64 TESTS 10 140 34304000
209475282 biomat B June 12, 2023, 4:50 p.m. OK PyPy 3-64 TESTS 10 155 27340800
209477033 Azamatsh B June 12, 2023, 5 p.m. OK PyPy 3-64 TESTS 10 155 28467200
209475779 UnicornVelociraptor B June 12, 2023, 4:53 p.m. OK PyPy 3-64 TESTS 10 155 30003200
209489832 damya B June 12, 2023, 7:01 p.m. OK PyPy 3-64 TESTS 10 155 30105600
209513216 XenoSky B June 13, 2023, 3:25 a.m. OK Python 3 TESTS 10 124 28672000
209515035 welshman_11 B June 13, 2023, 3:57 a.m. OK Python 3 TESTS 10 139 28364800
209516777 Arpit999 B June 13, 2023, 4:27 a.m. OK Python 3 TESTS 10 170 26316800
209487633 smam-mahdi B June 12, 2023, 6:36 p.m. OK Python 3 TESTS 10 170 27033600
209515210 nitin2203 B June 13, 2023, 4 a.m. OK Python 3 TESTS 10 170 28672000
209513126 XanderChou B June 13, 2023, 3:24 a.m. OK Python 3 TESTS 10 171 26214400
209473985 sivasai200115 B June 12, 2023, 4:43 p.m. OK Python 3 TESTS 10 171 26214400
209488087 dupemaster B June 12, 2023, 6:40 p.m. OK Python 3 TESTS 10 171 26521600
209514875 ridhima_1706 B June 13, 2023, 3:54 a.m. OK Python 3 TESTS 10 171 29184000
209477683 creativityinczenyoga B June 12, 2023, 5:05 p.m. OK Python 3 TESTS 10 186 27238400
209497539 0x81 B June 12, 2023, 8:58 p.m. OK Ruby 3 TESTS 10 529 21708800

remove filters

Back to search problems