Codeforces Raif Round 1 (Div. 1 + 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
1428 Codeforces Raif Round 1 (Div. 1 + Div. 2) FINISHED False 9000 134412911 Oct. 17, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14518 ) B Belted Rooms PROGRAMMING graphs implementation

B"In the snake exhibition, there are n rooms (numbered 0 to n - 1 ) arranged in a circle, with a snake in each room. The rooms are connected by n conveyor belts, and the i -th conveyor belt connects the rooms i and (i+1) bmod n . In the other words, rooms 0 and 1 , 1 and 2 , ldots , n-2 and n-1 , n-1 and 0 are connected with conveyor belts. The i -th conveyor belt is in one of three states: Above is an example with 4 rooms, where belts 0 and 3 are off, 1 is clockwise, and 2 is anticlockwise. Each snake wants to leave its room and come back to it later. A room is returnable if the snake there can leave the room, and later come back to it using the conveyor belts. How many such returnable rooms are there? Each test contains multiple test cases. The first line contains a single integer t ( 1 <= t <= 1000 ): the number of test cases. The description of the test cases follows. The first line of each test case description contains a single integer n ( 2 <= n <= 300 ,000 ): the number of rooms. The next line of each test case description contains a string s of length n , consisting of only '<', '>' and '-'. It is guaranteed that the sum of n among all test cases does not exceed 300 ,000 . For each test case, output the number of returnable rooms. In the first test case, all rooms are returnable except room 2 . The snake in the room 2 is trapped and cannot exit. This test case corresponds to the picture from the problem statement. In the second test case, all rooms are returnable by traveling on the series of clockwise belts. "...

Tutorials

Codeforces Raif Round 1 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
95823139 arun__007 B Oct. 17, 2020, 7:22 p.m. OK Clang++17 Diagnostics TESTS 60 156 21811200
95836290 impuk B Oct. 18, 2020, 3:02 a.m. OK FPC TESTS 60 46 3481600
95836008 ndocx B Oct. 18, 2020, 2:53 a.m. OK FPC TESTS 60 46 3481600
95836185 BugLeave B Oct. 18, 2020, 2:59 a.m. OK GNU C11 TESTS 60 31 307200
95800815 _spryzon_ B Oct. 17, 2020, 3:16 p.m. OK GNU C11 TESTS 59 31 307200
95811240 prince17 B Oct. 17, 2020, 4:30 p.m. OK GNU C11 TESTS 60 31 307200
95833253 ._._ B Oct. 18, 2020, 1:11 a.m. OK GNU C11 TESTS 60 31 307200
95835671 BugLeave B Oct. 18, 2020, 2:41 a.m. OK GNU C11 TESTS 60 31 307200
95804090 Hunterlord B Oct. 17, 2020, 3:25 p.m. OK GNU C11 TESTS 59 31 2662400
95798789 flayer_hunter B Oct. 17, 2020, 3:10 p.m. OK GNU C11 TESTS 59 46 307200
95832276 User_Carrot B Oct. 18, 2020, 12:19 a.m. OK GNU C++11 TESTS 60 31 0
95833287 luogu_bot4 B Oct. 18, 2020, 1:13 a.m. OK GNU C++11 TESTS 60 31 102400
95829365 vrabie.victor.30 B Oct. 17, 2020, 9:57 p.m. OK GNU C++11 TESTS 60 31 102400
95836536 KagamineRin B Oct. 18, 2020, 3:09 a.m. OK GNU C++11 TESTS 60 31 102400
95834454 tan900 B Oct. 18, 2020, 1:59 a.m. OK GNU C++11 TESTS 60 31 102400
95836571 luogu_bot4 B Oct. 18, 2020, 3:10 a.m. OK GNU C++11 TESTS 60 31 307200
95843477 Owen_codeisking B Oct. 18, 2020, 5:58 a.m. OK GNU C++11 TESTS 60 31 307200
95841434 gyh20 B Oct. 18, 2020, 5:18 a.m. OK GNU C++11 TESTS 60 31 307200
95838245 S-X-Y B Oct. 18, 2020, 3:58 a.m. OK GNU C++11 TESTS 60 31 307200
95841277 tianxiawoyou B Oct. 18, 2020, 5:15 a.m. OK GNU C++11 TESTS 60 31 307200
95810488 ver22albireo B Oct. 17, 2020, 4:25 p.m. OK GNU C++14 TESTS 60 31 307200
95827486 sam721 B Oct. 17, 2020, 8:58 p.m. OK GNU C++14 TESTS 60 31 307200
95824284 PlabanGain B Oct. 17, 2020, 7:45 p.m. OK GNU C++14 TESTS 60 31 307200
95824151 abhijeetsisodiya97 B Oct. 17, 2020, 7:42 p.m. OK GNU C++14 TESTS 60 31 307200
95823271 xb0nS B Oct. 17, 2020, 7:24 p.m. OK GNU C++14 TESTS 60 31 307200
95822555 aman_1103 B Oct. 17, 2020, 7:12 p.m. OK GNU C++14 TESTS 60 31 307200
95831857 xuffie B Oct. 17, 2020, 11:56 p.m. OK GNU C++14 TESTS 60 31 307200
95834631 4790iop B Oct. 18, 2020, 2:06 a.m. OK GNU C++14 TESTS 60 31 614400
95841893 CheckCheck007 B Oct. 18, 2020, 5:28 a.m. OK GNU C++14 TESTS 60 31 614400
95798579 xiawubing B Oct. 17, 2020, 3:09 p.m. OK GNU C++14 TESTS 59 31 614400
95833416 TABball B Oct. 18, 2020, 1:18 a.m. OK GNU C++17 TESTS 60 31 307200
95842227 yuzhechuan B Oct. 18, 2020, 5:34 a.m. OK GNU C++17 TESTS 60 31 307200
95841956 prasanthnaidukaraka B Oct. 18, 2020, 5:29 a.m. OK GNU C++17 TESTS 60 31 307200
95839776 isothermal B Oct. 18, 2020, 4:41 a.m. OK GNU C++17 TESTS 60 31 307200
95837148 usvsnsp B Oct. 18, 2020, 3:27 a.m. OK GNU C++17 TESTS 60 31 307200
95835221 Smary_AIkesohun B Oct. 18, 2020, 2:26 a.m. OK GNU C++17 TESTS 60 31 307200
95835066 cwf123 B Oct. 18, 2020, 2:21 a.m. OK GNU C++17 TESTS 60 31 307200
95833963 munsai B Oct. 18, 2020, 1:42 a.m. OK GNU C++17 TESTS 60 31 307200
95820092 shefin.cse16 B Oct. 17, 2020, 6:29 p.m. OK GNU C++17 TESTS 60 31 307200
95813186 tokiri B Oct. 17, 2020, 4:49 p.m. OK GNU C++17 TESTS 60 31 307200
95810301 ImranIF B Oct. 17, 2020, 4:24 p.m. OK GNU C++17 (64) TESTS 60 31 307200
95816437 sar0603 B Oct. 17, 2020, 5:33 p.m. OK GNU C++17 (64) TESTS 60 31 307200
95829494 Anas-Kudsi B Oct. 17, 2020, 10:03 p.m. OK GNU C++17 (64) TESTS 60 31 307200
95830578 3BS_AS B Oct. 17, 2020, 10:50 p.m. OK GNU C++17 (64) TESTS 60 31 307200
95840634 M0riarty B Oct. 18, 2020, 5:02 a.m. OK GNU C++17 (64) TESTS 60 31 1024000
95840603 kenechi B Oct. 18, 2020, 5:01 a.m. OK GNU C++17 (64) TESTS 60 31 1024000
95840993 Perdente B Oct. 18, 2020, 5:09 a.m. OK GNU C++17 (64) TESTS 60 31 1024000
95840350 mahbubhasanmht B Oct. 18, 2020, 4:55 a.m. OK GNU C++17 (64) TESTS 60 31 1024000
95840188 tannatsri B Oct. 18, 2020, 4:51 a.m. OK GNU C++17 (64) TESTS 60 31 1024000
95840112 vfpx07 B Oct. 18, 2020, 4:49 a.m. OK GNU C++17 (64) TESTS 60 31 1024000
95819433 a1000 B Oct. 17, 2020, 6:19 p.m. OK Java 11 TESTS 60 186 0
95821108 KoustavBeginner B Oct. 17, 2020, 6:46 p.m. OK Java 11 TESTS 60 186 0
95812074 yuruiyin B Oct. 17, 2020, 4:37 p.m. OK Java 11 TESTS 60 187 0
95834945 Agnimandur B Oct. 18, 2020, 2:17 a.m. OK Java 11 TESTS 60 187 0
95824905 b0bl0blaw B Oct. 17, 2020, 7:58 p.m. OK Java 11 TESTS 60 187 0
95823471 kintan B Oct. 17, 2020, 7:28 p.m. OK Java 11 TESTS 60 187 0
95820669 tirtho2107 B Oct. 17, 2020, 6:38 p.m. OK Java 11 TESTS 60 187 0
95814460 vineet_001 B Oct. 17, 2020, 5:05 p.m. OK Java 11 TESTS 60 187 0
95813854 vaishnav_firebolt B Oct. 17, 2020, 4:58 p.m. OK Java 11 TESTS 60 187 0
95842032 Saichand440 B Oct. 18, 2020, 5:30 a.m. OK Java 11 TESTS 60 202 0
95817680 Sandeep_Singh_Chhabada B Oct. 17, 2020, 5:52 p.m. OK Java 8 TESTS 60 109 0
95820779 procrastinate7 B Oct. 17, 2020, 6:40 p.m. OK Java 8 TESTS 60 124 0
95840363 eng_hardik B Oct. 18, 2020, 4:56 a.m. OK Java 8 TESTS 60 124 0
95838457 Extends B Oct. 18, 2020, 4:04 a.m. OK Java 8 TESTS 60 124 0
95835613 ujjwalavishek B Oct. 18, 2020, 2:40 a.m. OK Java 8 TESTS 60 124 0
95829222 csn3rd B Oct. 17, 2020, 9:53 p.m. OK Java 8 TESTS 60 124 0
95828613 subhash.yadav B Oct. 17, 2020, 9:33 p.m. OK Java 8 TESTS 60 124 0
95826384 qlf9 B Oct. 17, 2020, 8:31 p.m. OK Java 8 TESTS 60 124 0
95826357 sasuke428 B Oct. 17, 2020, 8:30 p.m. OK Java 8 TESTS 60 124 0
95823798 rachitpts.2454 B Oct. 17, 2020, 7:35 p.m. OK Java 8 TESTS 60 124 0
95812240 Tlatoani B Oct. 17, 2020, 4:39 p.m. OK Kotlin TESTS 60 140 0
95836661 Torehalt B Oct. 18, 2020, 3:13 a.m. OK MS C++ 2017 TESTS 60 31 1024000
95838772 x_silter B Oct. 18, 2020, 4:13 a.m. OK MS C++ 2017 TESTS 60 46 0
95807369 L0vk B Oct. 17, 2020, 3:33 p.m. OK MS C++ 2017 TESTS 59 46 307200
95800676 TomoyoSakagami B Oct. 17, 2020, 3:15 p.m. OK MS C++ 2017 TESTS 59 46 614400
95810776 DiSTRuCtO B Oct. 17, 2020, 4:27 p.m. OK MS C++ 2017 TESTS 60 46 1024000
95837147 CharliePhamTu B Oct. 18, 2020, 3:27 a.m. OK MS C++ 2017 TESTS 60 46 1024000
95817251 zarkdavor B Oct. 17, 2020, 5:45 p.m. OK MS C++ 2017 TESTS 60 46 1024000
95806755 SherKGoder B Oct. 17, 2020, 3:32 p.m. OK MS C++ 2017 TESTS 59 46 1024000
95806131 Start_Learning B Oct. 17, 2020, 3:31 p.m. OK MS C++ 2017 TESTS 59 46 1024000
95805668 Amit_123 B Oct. 17, 2020, 3:30 p.m. OK MS C++ 2017 TESTS 59 46 1024000
95804481 2stolbetskyi B Oct. 17, 2020, 3:26 p.m. OK .NET Core C# TESTS 59 108 1228800
95830514 bogdan10bos B Oct. 17, 2020, 10:48 p.m. OK Ocaml TESTS 60 46 6451200
95814648 june_waves B Oct. 17, 2020, 5:08 p.m. OK PyPy 3 TESTS 60 171 3481600
95814913 june_waves B Oct. 17, 2020, 5:11 p.m. OK PyPy 3 TESTS 60 171 3584000
95810306 kclee2172 B Oct. 17, 2020, 4:24 p.m. OK PyPy 3 TESTS 60 171 4608000
95832001 FahimSifnatul B Oct. 18, 2020, 12:04 a.m. OK PyPy 3 TESTS 60 171 8601600
95835273 a0976531005 B Oct. 18, 2020, 2:27 a.m. OK PyPy 3 TESTS 60 171 10137600
95839205 chirag_j_rana B Oct. 18, 2020, 4:25 a.m. OK PyPy 3 TESTS 60 171 13926400
95818049 kaleabasfaw2010 B Oct. 17, 2020, 5:57 p.m. OK PyPy 3 TESTS 60 171 16281600
95812125 marcus.test B Oct. 17, 2020, 4:38 p.m. OK PyPy 3 TESTS 60 186 3481600
95826070 Bovniova B Oct. 17, 2020, 8:24 p.m. OK PyPy 3 TESTS 60 186 9932800
95821968 manhar B Oct. 17, 2020, 7:01 p.m. OK PyPy 3 TESTS 60 187 3891200
95799562 Jastrow B Oct. 17, 2020, 3:12 p.m. OK Python 3 TESTS 59 155 4505600
95805723 deepchauhan18 B Oct. 17, 2020, 3:30 p.m. OK Python 3 TESTS 59 155 10752000
95834730 bhupat2000 B Oct. 18, 2020, 2:10 a.m. OK Python 3 TESTS 60 171 1126400
95813771 Saicharn_nr B Oct. 17, 2020, 4:57 p.m. OK Python 3 TESTS 60 171 1433600
95803540 Enivar B Oct. 17, 2020, 3:24 p.m. OK Python 3 TESTS 59 171 1433600
95814675 barath2001 B Oct. 17, 2020, 5:08 p.m. OK Python 3 TESTS 60 171 10854400
95835431 VBN2470 B Oct. 18, 2020, 2:33 a.m. OK Python 3 TESTS 60 186 1126400
95832239 Madhuvanthi_srikanth B Oct. 18, 2020, 12:17 a.m. OK Python 3 TESTS 60 186 1331200
95802600 Photographer B Oct. 17, 2020, 3:21 p.m. OK Python 3 TESTS 59 186 2560000
95805374 deepsan B Oct. 17, 2020, 3:29 p.m. OK Python 3 TESTS 59 186 10854400
95816319 kona0001 B Oct. 17, 2020, 5:31 p.m. OK Ruby TESTS 60 639 41164800
95830221 Kaa B Oct. 17, 2020, 10:35 p.m. OK Rust TESTS 60 46 2560000

remove filters

Back to search problems