Educational Codeforces Round 154 (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
1861 Educational Codeforces Round 154 (Rated for Div. 2) FINISHED False 7200 43687463 Aug. 31, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21929 ) B Two Binary Strings PROGRAMMING constructive algorithms dfs and similar greedy

B"You are given two strings a and b of equal length, consisting of only characters 0 and/or 1; both strings start with character 0 and end with character 1. You can perform the following operation any number of times (possibly zero): Formally, you choose one of these two strings (let the chosen string be s ), then pick two integers l and r such that 1 <= l < r <= |s| and s_l = s_r , then replace every character s_i such that l < i < r with s_l . For example, if the chosen string is 010101, you can transform it into one of the following strings by applying one operation: You have to determine if it's possible to make the given strings equal by applying this operation any number of times. The first line contains a single integer t ( 1 <= t <= 2000 ) -- the number of test cases. Each test case consists of two lines: Additional constraints on the input: For each test case, print YES if it is possible to make the strings equal. Otherwise, print NO. You can print each letter in any register. In the first test case, we can perform the following operations: In the second test case, the strings are already equal. In the third test case, we can perform the following operations: In the fourth and fifth test cases, it's impossible to make the given strings equal. "...

Tutorials

Educational Codeforces Round 154 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
221387434 bluemegane B Aug. 31, 2023, 10:55 p.m. OK C# 8 TESTS 8 77 0
221387474 bluemegane B Aug. 31, 2023, 10:56 p.m. OK C# 8 TESTS 8 108 0
221387257 bluemegane B Aug. 31, 2023, 10:50 p.m. OK C# 8 TESTS 8 155 204800
221375748 Adenosine B Aug. 31, 2023, 7:20 p.m. OK Clang++20 Diagnostics TESTS 8 46 5222400
221364737 herocharge B Aug. 31, 2023, 5:29 p.m. OK GNU C11 TESTS 8 15 0
221351509 queenofdisaster B Aug. 31, 2023, 4:29 p.m. OK GNU C11 TESTS 8 15 0
221400518 abhikst98 B Sept. 1, 2023, 3:57 a.m. OK GNU C11 TESTS 8 15 0
221397647 Hantur B Sept. 1, 2023, 3:06 a.m. OK GNU C11 TESTS 8 15 204800
221358612 iffatul_anon B Aug. 31, 2023, 4:48 p.m. OK GNU C11 TESTS 8 15 204800
221356783 hardik_45.exe B Aug. 31, 2023, 4:39 p.m. OK GNU C11 TESTS 8 15 409600
221407276 harshit16 B Sept. 1, 2023, 5:54 a.m. OK GNU C11 TESTS 8 31 0
221399339 LLDhahaha B Sept. 1, 2023, 3:35 a.m. OK GNU C++14 TESTS 8 0 0
221398512 LHPCoder B Sept. 1, 2023, 3:21 a.m. OK GNU C++14 TESTS 8 0 0
221396799 uday2806 B Sept. 1, 2023, 2:50 a.m. OK GNU C++14 TESTS 8 0 0
221394826 AndyLiuYS B Sept. 1, 2023, 2:10 a.m. OK GNU C++14 TESTS 8 0 0
221394453 zzzjw B Sept. 1, 2023, 2:02 a.m. OK GNU C++14 TESTS 8 0 0
221393385 ldh081122 B Sept. 1, 2023, 1:38 a.m. OK GNU C++14 TESTS 8 0 0
221393302 mzycNATO B Sept. 1, 2023, 1:36 a.m. OK GNU C++14 TESTS 8 0 0
221404540 went_hungry B Sept. 1, 2023, 5:07 a.m. OK GNU C++14 TESTS 8 0 0
221402442 AreUok B Sept. 1, 2023, 4:32 a.m. OK GNU C++14 TESTS 8 0 0
221401749 trieuvimely B Sept. 1, 2023, 4:20 a.m. OK GNU C++14 TESTS 8 0 0
221400906 arjun2k19 B Sept. 1, 2023, 4:05 a.m. OK GNU C++17 TESTS 8 0 0
221400830 Touhid47 B Sept. 1, 2023, 4:03 a.m. OK GNU C++17 TESTS 8 0 0
221400538 Bhuiyan. B Sept. 1, 2023, 3:58 a.m. OK GNU C++17 TESTS 8 0 0
221402077 jyoti210478 B Sept. 1, 2023, 4:26 a.m. OK GNU C++17 TESTS 8 0 0
221402255 Akil_Newaz_Chy B Sept. 1, 2023, 4:29 a.m. OK GNU C++17 TESTS 8 0 0
221402700 TCS_Bhediya B Sept. 1, 2023, 4:36 a.m. OK GNU C++17 TESTS 8 0 0
221407466 Christopher_Rdz B Sept. 1, 2023, 5:57 a.m. OK GNU C++17 TESTS 8 0 0
221401326 aditya_0670 B Sept. 1, 2023, 4:13 a.m. OK GNU C++17 TESTS 8 0 0
221401206 pablo888 B Sept. 1, 2023, 4:11 a.m. OK GNU C++17 TESTS 8 0 0
221401049 T3T____ B Sept. 1, 2023, 4:08 a.m. OK GNU C++17 TESTS 8 0 0
221400331 15532256331 B Sept. 1, 2023, 3:54 a.m. OK GNU C++17 (64) TESTS 8 0 0
221403110 chappy1 B Sept. 1, 2023, 4:43 a.m. OK GNU C++17 (64) TESTS 8 0 0
221402787 aman1009 B Sept. 1, 2023, 4:37 a.m. OK GNU C++17 (64) TESTS 8 0 0
221401757 sadhukhansubham588 B Sept. 1, 2023, 4:21 a.m. OK GNU C++17 (64) TESTS 8 0 0
221401409 a2513472504 B Sept. 1, 2023, 4:14 a.m. OK GNU C++17 (64) TESTS 8 0 0
221400191 15532256331 B Sept. 1, 2023, 3:52 a.m. OK GNU C++17 (64) TESTS 8 0 0
221400006 _s_b_a_a B Sept. 1, 2023, 3:49 a.m. OK GNU C++17 (64) TESTS 8 0 0
221395604 tangchangtao.. B Sept. 1, 2023, 2:26 a.m. OK GNU C++17 (64) TESTS 8 0 0
221395354 habibaragab324 B Sept. 1, 2023, 2:21 a.m. OK GNU C++17 (64) TESTS 8 0 0
221394890 grawlixes B Sept. 1, 2023, 2:11 a.m. OK GNU C++17 (64) TESTS 8 0 0
221403939 aditya_unknown B Sept. 1, 2023, 4:56 a.m. OK GNU C++20 (64) TESTS 8 0 0
221403360 akhild_ B Sept. 1, 2023, 4:47 a.m. OK GNU C++20 (64) TESTS 8 0 0
221403278 ayush_r28 B Sept. 1, 2023, 4:45 a.m. OK GNU C++20 (64) TESTS 8 0 0
221404233 fantasma B Sept. 1, 2023, 5:01 a.m. OK GNU C++20 (64) TESTS 8 0 0
221406729 zobaer_shakib B Sept. 1, 2023, 5:48 a.m. OK GNU C++20 (64) TESTS 8 0 0
221407073 jiangly B Sept. 1, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 8 0 0
221407364 KK_Ash B Sept. 1, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 8 0 0
221407456 Dinocoder B Sept. 1, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 8 0 0
221407601 _drifter B Sept. 1, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 8 0 0
221407635 meh1103 B Sept. 1, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 8 0 0
221396041 InHng B Sept. 1, 2023, 2:34 a.m. OK Go TESTS 8 15 102400
221375975 Harwinvanak B Aug. 31, 2023, 7:23 p.m. OK Java 11 TESTS 8 186 0
221406915 aishwarykesarwani B Sept. 1, 2023, 5:50 a.m. OK Java 11 TESTS 8 202 0
221378193 Harwinvanak B Aug. 31, 2023, 7:53 p.m. OK Java 11 TESTS 8 202 0
221358409 ujjwal_a0001 B Aug. 31, 2023, 4:47 p.m. OK Java 11 TESTS 8 202 0
221357792 polsage B Aug. 31, 2023, 4:44 p.m. OK Java 11 TESTS 8 202 0
221359822 ankitsrawat2000 B Aug. 31, 2023, 4:54 p.m. OK Java 11 TESTS 8 218 0
221351810 siddak_18 B Aug. 31, 2023, 4:29 p.m. OK Java 11 TESTS 8 218 0
221360927 nikhilvinay55 B Aug. 31, 2023, 5:01 p.m. OK Java 11 TESTS 8 233 0
221351542 monukumar123 B Aug. 31, 2023, 4:29 p.m. OK Java 11 TESTS 8 265 0
221359145 dzhi B Aug. 31, 2023, 4:51 p.m. OK Java 17 TESTS 8 186 204800
221359354 dzhi B Aug. 31, 2023, 4:52 p.m. OK Java 17 TESTS 8 186 409600
221396793 eslamms B Sept. 1, 2023, 2:50 a.m. OK Java 17 TESTS 8 187 0
221367052 Extradict B Aug. 31, 2023, 5:48 p.m. OK Java 17 TESTS 8 187 102400
221359635 pranay_1012 B Aug. 31, 2023, 4:53 p.m. OK Java 17 TESTS 8 187 102400
221353466 2110030093 B Aug. 31, 2023, 4:32 p.m. OK Java 17 TESTS 8 187 409600
221374674 _ryan18_ B Aug. 31, 2023, 7:07 p.m. OK Java 17 TESTS 8 202 204800
221373745 byte_b B Aug. 31, 2023, 6:55 p.m. OK Java 17 TESTS 8 202 204800
221364635 ishanmandal5 B Aug. 31, 2023, 5:28 p.m. OK Java 17 TESTS 8 202 409600
221353688 Harshit_Raj_14 B Aug. 31, 2023, 4:32 p.m. OK Java 17 TESTS 8 202 512000
221407298 striver_rad B Sept. 1, 2023, 5:55 a.m. OK Java 8 TESTS 8 93 0
221360041 This_is_Rish B Aug. 31, 2023, 4:56 p.m. OK Java 8 TESTS 8 108 0
221392736 Ginnnnn B Sept. 1, 2023, 1:22 a.m. OK Java 8 TESTS 8 124 0
221392543 manojbagari01 B Sept. 1, 2023, 1:18 a.m. OK Java 8 TESTS 8 124 0
221359737 This_is_Rish B Aug. 31, 2023, 4:54 p.m. OK Java 8 TESTS 8 124 0
221372172 Sumitsingh7 B Aug. 31, 2023, 6:39 p.m. OK Java 8 TESTS 8 124 5734400
221392305 wwxula B Sept. 1, 2023, 1:12 a.m. OK Java 8 TESTS 8 139 0
221391397 lemma_Forever B Sept. 1, 2023, 12:51 a.m. OK Java 8 TESTS 8 139 0
221370629 codechefpurpose2023 B Aug. 31, 2023, 6:23 p.m. OK Java 8 TESTS 8 139 0
221351471 garvitjain.og B Aug. 31, 2023, 4:29 p.m. OK Java 8 TESTS 8 139 0
221384303 magedarafa114 B Aug. 31, 2023, 9:40 p.m. OK MS C++ 2017 TESTS 8 15 0
221354434 krish2004 B Aug. 31, 2023, 4:33 p.m. OK MS C++ 2017 TESTS 8 15 0
221363762 tatianyi B Aug. 31, 2023, 5:21 p.m. OK MS C++ 2017 TESTS 8 15 102400
221360681 Mo-Ehab B Aug. 31, 2023, 5 p.m. OK Node.js TESTS 8 78 0
221352331 Aladeen8349 B Aug. 31, 2023, 4:30 p.m. OK PyPy 3 TESTS 8 139 2969600
221363542 Yeaish_Turj B Aug. 31, 2023, 5:19 p.m. OK PyPy 3 TESTS 8 140 5222400
221360739 bony_always B Aug. 31, 2023, 5 p.m. OK PyPy 3 TESTS 8 186 4198400
221403028 VioletVal B Sept. 1, 2023, 4:42 a.m. OK PyPy 3 TESTS 8 358 4300800
221370451 chai.pi B Aug. 31, 2023, 6:21 p.m. OK PyPy 3-64 TESTS 8 62 2048000
221370224 zechri B Aug. 31, 2023, 6:19 p.m. OK PyPy 3-64 TESTS 8 62 2560000
221362762 shamir0xe B Aug. 31, 2023, 5:14 p.m. OK PyPy 3-64 TESTS 8 77 2048000
221370984 2020A7PS0273H_Sriram_S B Aug. 31, 2023, 6:26 p.m. OK PyPy 3-64 TESTS 8 77 2457600
221367354 Code_Hard10 B Aug. 31, 2023, 5:51 p.m. OK PyPy 3-64 TESTS 8 77 2662400
221398652 deepansh09 B Sept. 1, 2023, 3:24 a.m. OK PyPy 3-64 TESTS 8 77 2867200
221386691 gardengnome B Aug. 31, 2023, 10:34 p.m. OK PyPy 3-64 TESTS 8 77 2969600
221362458 flexr B Aug. 31, 2023, 5:12 p.m. OK PyPy 3-64 TESTS 8 93 2560000
221356550 LYmiracle B Aug. 31, 2023, 4:38 p.m. OK PyPy 3-64 TESTS 8 93 3686400
221403270 Harish7777777 B Sept. 1, 2023, 4:45 a.m. OK PyPy 3-64 TESTS 8 93 4915200
221400160 biltharesatyendra B Sept. 1, 2023, 3:51 a.m. OK Python 2 TESTS 8 46 0
221401397 Nikhil0007 B Sept. 1, 2023, 4:14 a.m. OK Python 3 TESTS 8 31 0
221384418 ababu B Aug. 31, 2023, 9:42 p.m. OK Python 3 TESTS 8 31 0
221373444 varun_bits B Aug. 31, 2023, 6:52 p.m. OK Python 3 TESTS 8 31 0
221361789 D33pak007 B Aug. 31, 2023, 5:07 p.m. OK Python 3 TESTS 8 31 0
221361100 MiguelCanais B Aug. 31, 2023, 5:03 p.m. OK Python 3 TESTS 8 31 0
221357634 tanmay_patil_ B Aug. 31, 2023, 4:43 p.m. OK Python 3 TESTS 8 31 204800
221407777 Shivaprasad47 B Sept. 1, 2023, 6:01 a.m. OK Python 3 TESTS 8 46 0
221401573 VioletVal B Sept. 1, 2023, 4:17 a.m. OK Python 3 TESTS 8 46 0
221397975 kunal_9 B Sept. 1, 2023, 3:12 a.m. OK Python 3 TESTS 8 46 0
221396444 abhijit07cf B Sept. 1, 2023, 2:43 a.m. OK Python 3 TESTS 8 46 0
221374227 zys111 B Aug. 31, 2023, 7:01 p.m. OK Rust 2021 TESTS 8 0 0
221374808 zys111 B Aug. 31, 2023, 7:08 p.m. OK Rust 2021 TESTS 8 15 0
221374299 zys111 B Aug. 31, 2023, 7:02 p.m. OK Rust 2021 TESTS 8 15 0
221362528 MenezesDM B Aug. 31, 2023, 5:12 p.m. OK Rust 2021 TESTS 8 15 0

remove filters

Back to search problems