Educational Codeforces Round 184 (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
2169 Educational Codeforces Round 184 (Rated for Div. 2) FINISHED False 7200 13274723 Nov. 14, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 15978 ) B Drifting Away PROGRAMMING implementation implementation implementation implementation implementation

There's a river flowing in front of Monocarp's house, which can be represented as a strip of cells. In some cells, there is a strong current, while in others, there is no current. It can be represented as a string (s), consisting of the following characters: the "less-than" sign (' < ') — leftward current; the "greater-than" sign (' > ') — rightward current; an asterisk (' * ') — no current. At first, Monocarp chooses the cell to start his journey along the river at. If there is a current in the cell, where Monocarp is at the moment, he is carried to the neighboring cell in the direction of the current. If there is no neighboring cell (i. e., a leftward current in cell (1) or a rightward current in cell (n)), Monocarp ends up on the shore. Each move takes one minute. If there is no current in the cell, where Monocarp is at the moment, he rows to the neighboring cell on the left or to the neighboring cell on the right. If there is no neighboring cell in the direction where Monocarp decides to row to, he ends up on the shore. Each move also takes one minute. Monocarp wants to sail along the river for as long as possible. If Monocarp can sail infinitely, print (-1). Otherwise, print the maximum time Monocarp can sail along the river before ending up on the shore. The first line contains a single integer (t) ((1 \le t \le 10^4)) — the number of test cases. The only line of each test case contains a string (s) ((1 \le |s| \le 3 \cdot 10^5)), consisting only of characters ' < ' (leftward current), ' > ' (rightward current), ' * ' (no current). The ASCII codes are (60), (62), and (42), respectively. An additional constraint on the input: the total length of strings (s) over all test cases does not exceed (3 \cdot 10^5). For each test case, output a single integer: (-1), if Monocarp can sail along the river infinitely; the maximum time Monocarp can sail along the river before ending up on the shore, otherwise

Tutorials

Educational Codeforces Round 184 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
348991062 -NIKA-NIKA- B Nov. 14, 2025, 4:45 p.m. OK C# 13 TESTS 4 109 2560000
348983128 Albecepon B Nov. 14, 2025, 4:25 p.m. OK C# 13 TESTS 4 109 15872000
348980530 suryatej_69 B Nov. 14, 2025, 4:20 p.m. OK C# 13 TESTS 4 249 47718400
349044360 laksh_bagdi B Nov. 15, 2025, 5:04 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349042806 Arjun_Vats B Nov. 15, 2025, 4:45 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349042001 Sekiro337 B Nov. 15, 2025, 4:34 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349039110 llc5pg B Nov. 15, 2025, 3:51 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349034409 Jorim B Nov. 15, 2025, 2:33 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349029407 stariverony B Nov. 15, 2025, 12:33 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349015783 tanay.raj76 B Nov. 14, 2025, 8 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349008871 Gotaduck B Nov. 14, 2025, 6:56 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349001211 me_mayank20 B Nov. 14, 2025, 5:56 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
348994074 marcus06 B Nov. 14, 2025, 5:04 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
349027973 ganta.jashu B Nov. 14, 2025, 11:41 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
349026202 codemystery B Nov. 14, 2025, 10:45 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
349040971 lwiwiwi B Nov. 15, 2025, 4:19 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
349032831 rainbow_automaton B Nov. 15, 2025, 2:01 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
349032074 CaoJinCheng B Nov. 15, 2025, 1:44 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
349026934 snowythecat B Nov. 14, 2025, 11:07 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
349017301 mdMujahidurRahman B Nov. 14, 2025, 8:18 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
348993760 rishawrajofficial75 B Nov. 14, 2025, 5:02 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
348991706 siamduetstudent B Nov. 14, 2025, 4:49 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
348985176 Mustafa_bakri136 B Nov. 14, 2025, 4:29 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
349048457 _-A15N-_ B Nov. 15, 2025, 5:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
349004067 lira.frts B Nov. 14, 2025, 6:17 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
349000421 M0ZA7ER B Nov. 14, 2025, 5:50 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
348997535 Khattaab B Nov. 14, 2025, 5:28 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
348995563 wandanoko B Nov. 14, 2025, 5:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
348992819 mksaadi B Nov. 14, 2025, 4:56 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
348982303 Encode_Hridoy B Nov. 14, 2025, 4:23 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
349038548 whiplash_sin B Nov. 15, 2025, 3:42 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
349034926 cockroachavocado B Nov. 15, 2025, 2:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
349032750 JiuQi_ B Nov. 15, 2025, 1:59 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
348984887 alipashayev B Nov. 14, 2025, 4:28 p.m. OK GNU C11 TESTS 4 46 8704000
349013884 Dhyey_0075 B Nov. 14, 2025, 7:41 p.m. OK GNU C11 TESTS 4 77 409600
348998246 Frier B Nov. 14, 2025, 5:33 p.m. OK GNU C11 TESTS 4 77 409600
348997825 Frier B Nov. 14, 2025, 5:30 p.m. OK GNU C11 TESTS 4 77 409600
349012532 wahidnoob B Nov. 14, 2025, 7:29 p.m. OK GNU C11 TESTS 4 77 1536000
348984540 Priyanshu___812___ B Nov. 14, 2025, 4:28 p.m. OK GNU C11 TESTS 4 77 9830400
348984187 munkasir_haque28 B Nov. 14, 2025, 4:27 p.m. OK GNU C11 TESTS 4 77 9932800
348996260 infy_lu B Nov. 14, 2025, 5:18 p.m. OK GNU C11 TESTS 4 93 307200
348986029 Laufier B Nov. 14, 2025, 4:30 p.m. OK GNU C11 TESTS 4 109 716800
348993198 chethan_coding B Nov. 14, 2025, 4:58 p.m. OK Go TESTS 4 77 2048000
349011288 tekka_ity B Nov. 14, 2025, 7:17 p.m. OK Java 21 TESTS 4 218 0
349014862 FREDDY_HERE B Nov. 14, 2025, 7:51 p.m. OK Java 21 TESTS 4 218 204800
349021620 iamalizaidi B Nov. 14, 2025, 9:18 p.m. OK Java 21 TESTS 4 218 512000
348986373 harsh_indoria B Nov. 14, 2025, 4:31 p.m. OK Java 21 TESTS 4 233 0
349014927 Ayush_Raj_2027 B Nov. 14, 2025, 7:51 p.m. OK Java 21 TESTS 4 234 204800
348986833 cherry1009 B Nov. 14, 2025, 4:31 p.m. OK Java 21 TESTS 4 234 307200
348990941 ccj123 B Nov. 14, 2025, 4:45 p.m. OK Java 21 TESTS 4 234 716800
348990433 Karanchauhan B Nov. 14, 2025, 4:42 p.m. OK Java 21 TESTS 4 249 0
349017899 Harsh_Vince B Nov. 14, 2025, 8:25 p.m. OK Java 21 TESTS 4 249 307200
349012045 keshav_.agg B Nov. 14, 2025, 7:24 p.m. OK Java 21 TESTS 4 264 0
349012795 d1n0Codes B Nov. 14, 2025, 7:31 p.m. OK Java 8 TESTS 4 124 0
348982397 Rytham_Maalpani B Nov. 14, 2025, 4:24 p.m. OK Java 8 TESTS 4 155 0
349042627 abhi139 B Nov. 15, 2025, 4:43 a.m. OK Java 8 TESTS 4 187 0
349034160 abhayrajnegi0416 B Nov. 15, 2025, 2:28 a.m. OK Java 8 TESTS 4 187 0
349015264 krishna_s_kapale B Nov. 14, 2025, 7:55 p.m. OK Java 8 TESTS 4 202 0
349039195 Krishna_Pate B Nov. 15, 2025, 3:53 a.m. OK Java 8 TESTS 4 218 0
349036378 Narayana_10 B Nov. 15, 2025, 3:09 a.m. OK Java 8 TESTS 4 218 0
349005461 manishpratap2205 B Nov. 14, 2025, 6:28 p.m. OK Java 8 TESTS 4 233 0
348984417 sumaqada B Nov. 14, 2025, 4:27 p.m. OK Kotlin 2.2 TESTS 4 171 0
349005237 shivam_tiwari06 B Nov. 14, 2025, 6:26 p.m. OK PyPy 3 TESTS 4 202 6348800
348999494 JagannathHari B Nov. 14, 2025, 5:43 p.m. OK PyPy 3 TESTS 4 265 7577600
348985794 SoleProprietor B Nov. 14, 2025, 4:30 p.m. OK PyPy 3-64 TESTS 4 93 2662400
349041161 whoami12345 B Nov. 15, 2025, 4:22 a.m. OK PyPy 3-64 TESTS 4 108 3584000
349021608 Akshatgupta069_069 B Nov. 14, 2025, 9:18 p.m. OK PyPy 3-64 TESTS 4 108 3686400
349000657 dawinder_77 B Nov. 14, 2025, 5:52 p.m. OK PyPy 3-64 TESTS 4 108 4096000
348982995 henok_t_k B Nov. 14, 2025, 4:25 p.m. OK PyPy 3-64 TESTS 4 108 4812800
349012093 sorcerer_21 B Nov. 14, 2025, 7:25 p.m. OK PyPy 3-64 TESTS 4 108 4915200
348989513 RobinFromTheHood B Nov. 14, 2025, 4:38 p.m. OK PyPy 3-64 TESTS 4 108 4915200
348990078 dawinder_77 B Nov. 14, 2025, 4:40 p.m. OK PyPy 3-64 TESTS 4 109 4096000
348981567 Soman_Abbasi B Nov. 14, 2025, 4:22 p.m. OK PyPy 3-64 TESTS 4 124 3686400
348995621 hsn8086 B Nov. 14, 2025, 5:14 p.m. OK PyPy 3-64 TESTS 4 124 4096000
349048911 chantal_prym B Nov. 15, 2025, 5:49 a.m. OK Python 3 TESTS 4 62 819200
349047018 eugalt B Nov. 15, 2025, 5:30 a.m. OK Python 3 TESTS 4 62 1228800
349045553 eugalt B Nov. 15, 2025, 5:16 a.m. OK Python 3 TESTS 4 62 1228800
349000508 hhqqyyang B Nov. 14, 2025, 5:51 p.m. OK Python 3 TESTS 4 77 2048000
349043307 sravanKumar3 B Nov. 15, 2025, 4:52 a.m. OK Python 3 TESTS 4 92 1228800
349033937 Siam84 B Nov. 15, 2025, 2:24 a.m. OK Python 3 TESTS 4 93 921600
348981318 prohorse B Nov. 14, 2025, 4:21 p.m. OK Python 3 TESTS 4 93 921600
348980635 anshmehta_20 B Nov. 14, 2025, 4:20 p.m. OK Python 3 TESTS 4 93 921600
349043724 eugalt B Nov. 15, 2025, 4:56 a.m. OK Python 3 TESTS 4 93 2969600
348990558 aziz10 B Nov. 14, 2025, 4:43 p.m. OK Python 3 TESTS 4 109 819200
349006397 allcaps B Nov. 14, 2025, 6:36 p.m. OK Rust 2024 TESTS 4 46 0
349037727 LH3223chen B Nov. 15, 2025, 3:31 a.m. OK Rust 2024 TESTS 4 62 0

remove filters

Back to search problems