Codeforces Round 927 (Div. 3)

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
1932 Codeforces Round 927 (Div. 3) FINISHED False 8100 28922063 Feb. 18, 2024, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30402 ) A Thorns and Coins PROGRAMMING dp greedy implementation

B"During your journey through computer universes, you stumbled upon a very interesting world. It is a path with n consecutive cells, each of which can either be empty, contain thorns, or a coin. In one move, you can move one or two cells along the path, provided that the destination cell does not contain thorns (and belongs to the path). If you move to the cell with a coin, you pick it up. You want to collect as many coins as possible. Find the maximum number of coins you can collect in the discovered world if you start in the leftmost cell of the path. The first line of input contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then the descriptions of the test cases follow. The first line of each test case contains a single integer n ( 1 <= n <= 50 ) -- the length of the path. The second line of each test case contains a string of n characters, the description of the path. The character '.' denotes an empty cell, '@' denotes a cell with a coin, and '*' denotes a cell with thorns. It is guaranteed that the first cell is empty. For each test case, output a single integer, the maximum number of coins you can collect. The picture for the first example is in the problem statement. Here is the picture for the second example: And here is the picture for the third example: "...

Tutorials

126196

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
247204766 mban259 A Feb. 19, 2024, 12:43 p.m. OK C# 10 TESTS 7 31 102400
247148523 Swilled7 A Feb. 18, 2024, 10:20 p.m. OK C# 10 TESTS 7 62 204800
247147403 bluemegane A Feb. 18, 2024, 9:56 p.m. OK C# 8 TESTS 7 77 204800
247157853 Taj025 A Feb. 19, 2024, 5:09 a.m. OK C# 8 TESTS 7 124 307200
247130728 Nova_042 A Feb. 18, 2024, 6:26 p.m. OK Clang++17 Diagnostics TESTS 7 46 0
247153207 sunzhihao123 A Feb. 19, 2024, 4:13 a.m. OK Clang++17 Diagnostics TESTS 7 46 0
247156052 harshbardhan1326348 A Feb. 19, 2024, 4:50 a.m. OK Clang++17 Diagnostics TESTS 7 46 0
247200297 sumit3355 A Feb. 19, 2024, 12:06 p.m. OK Clang++17 Diagnostics TESTS 7 46 0
247138200 Nova_042 A Feb. 18, 2024, 7:44 p.m. OK Clang++17 Diagnostics TESTS 7 77 0
247425132 nhatquangtruongtran A Feb. 20, 2024, 4:51 a.m. OK Clang++17 Diagnostics TESTS 7 78 0
247180282 sriramt234 A Feb. 19, 2024, 9:15 a.m. OK Clang++17 Diagnostics TESTS 7 326 19968000
247422074 NandoGun A Feb. 20, 2024, 4:07 a.m. OK Clang++20 Diagnostics TESTS 7 31 0
247132264 vcaibird A Feb. 18, 2024, 6:42 p.m. OK Clang++20 Diagnostics TESTS 7 31 0
247190054 Schoolbag A Feb. 19, 2024, 10:36 a.m. OK Clang++20 Diagnostics TESTS 7 46 0
247206331 sabbir_hossain23 A Feb. 19, 2024, 12:54 p.m. OK Clang++20 Diagnostics TESTS 7 61 0
247171387 funnyguyz A Feb. 19, 2024, 8:05 a.m. OK Clang++20 Diagnostics TESTS 7 61 0
247156454 bebopboi A Feb. 19, 2024, 4:54 a.m. OK Clang++20 Diagnostics TESTS 7 62 0
247154085 emo. A Feb. 19, 2024, 4:25 a.m. OK Clang++20 Diagnostics TESTS 7 62 0
247144607 Bazinga_2004 A Feb. 18, 2024, 9:09 p.m. OK Clang++20 Diagnostics TESTS 7 62 0
247203706 21debjanibiswas A Feb. 19, 2024, 12:34 p.m. OK GNU C11 TESTS 7 15 0
247130462 SUMON10 A Feb. 18, 2024, 6:24 p.m. OK GNU C11 TESTS 7 15 0
247381826 kutaydemirbas2009 A Feb. 19, 2024, 6:22 p.m. OK GNU C11 TESTS 7 15 0
247131769 Code_Commander_ A Feb. 18, 2024, 6:36 p.m. OK GNU C11 TESTS 7 15 307200
247189251 zaoba A Feb. 19, 2024, 10:28 a.m. OK GNU C11 TESTS 7 15 307200
247212063 ruanertanjing A Feb. 19, 2024, 1:34 p.m. OK GNU C11 TESTS 7 15 307200
247133107 sangamsiddharth05 A Feb. 18, 2024, 6:51 p.m. OK GNU C11 TESTS 7 15 307200
247175906 ahnaf_sadi A Feb. 19, 2024, 8:40 a.m. OK GNU C11 TESTS 7 15 307200
247213060 riyadunnabi A Feb. 19, 2024, 1:41 p.m. OK GNU C11 TESTS 7 30 204800
247228137 lazychen A Feb. 19, 2024, 2:37 p.m. OK GNU C11 TESTS 7 30 204800
247380847 GuiRaps A Feb. 19, 2024, 6:14 p.m. OK GNU C++17 TESTS 7 0 0
247380959 _slowforces A Feb. 19, 2024, 6:15 p.m. OK GNU C++17 TESTS 7 0 0
247381178 inayankt A Feb. 19, 2024, 6:17 p.m. OK GNU C++17 TESTS 7 0 0
247388008 Ulissao A Feb. 19, 2024, 7:17 p.m. OK GNU C++17 TESTS 7 0 0
247399604 automac A Feb. 19, 2024, 9:26 p.m. OK GNU C++17 TESTS 7 0 0
247405072 aviral_yadav A Feb. 19, 2024, 11:14 p.m. OK GNU C++17 TESTS 7 0 0
247410332 maomaoo A Feb. 20, 2024, 1:12 a.m. OK GNU C++17 TESTS 7 0 0
247414720 Longqiang A Feb. 20, 2024, 2:29 a.m. OK GNU C++17 TESTS 7 0 0
247419816 sean123xyz A Feb. 20, 2024, 3:37 a.m. OK GNU C++17 TESTS 7 0 0
247422424 5-gon A Feb. 20, 2024, 4:12 a.m. OK GNU C++17 TESTS 7 0 0
247202465 JEdward A Feb. 19, 2024, 12:25 p.m. OK GNU C++17 (64) TESTS 7 0 0
247419663 hacker_dvd A Feb. 20, 2024, 3:35 a.m. OK GNU C++17 (64) TESTS 7 0 0
247415567 YinDouKi A Feb. 20, 2024, 2:42 a.m. OK GNU C++17 (64) TESTS 7 0 0
247410324 jdurie A Feb. 20, 2024, 1:12 a.m. OK GNU C++17 (64) TESTS 7 0 0
247400065 Taffyy A Feb. 19, 2024, 9:33 p.m. OK GNU C++17 (64) TESTS 7 0 0
247216919 Velkhana4910 A Feb. 19, 2024, 2:09 p.m. OK GNU C++17 (64) TESTS 7 0 0
247209406 _Venti A Feb. 19, 2024, 1:16 p.m. OK GNU C++17 (64) TESTS 7 0 0
247209015 Ntd123 A Feb. 19, 2024, 1:13 p.m. OK GNU C++17 (64) TESTS 7 0 0
247208949 touhid19 A Feb. 19, 2024, 1:13 p.m. OK GNU C++17 (64) TESTS 7 0 0
247206538 Memset_Lee A Feb. 19, 2024, 12:56 p.m. OK GNU C++17 (64) TESTS 7 0 0
247394993 Solom A Feb. 19, 2024, 8:28 p.m. OK GNU C++20 (64) TESTS 7 0 0
247396707 AnasMaged A Feb. 19, 2024, 8:48 p.m. OK GNU C++20 (64) TESTS 7 0 0
247400590 sam_heuer A Feb. 19, 2024, 9:40 p.m. OK GNU C++20 (64) TESTS 7 0 0
247404549 arnavsrivastava0123 A Feb. 19, 2024, 11:01 p.m. OK GNU C++20 (64) TESTS 7 0 0
247417048 RSACO A Feb. 20, 2024, 3:02 a.m. OK GNU C++20 (64) TESTS 7 0 0
247420232 Imron.S A Feb. 20, 2024, 3:42 a.m. OK GNU C++20 (64) TESTS 7 0 0
247426194 Md_Abu_Taleb A Feb. 20, 2024, 5:03 a.m. OK GNU C++20 (64) TESTS 7 0 0
247426637 bottlesan A Feb. 20, 2024, 5:08 a.m. OK GNU C++20 (64) TESTS 7 0 0
247429689 Hossam_Zein_14 A Feb. 20, 2024, 5:43 a.m. OK GNU C++20 (64) TESTS 7 0 0
247430530 catlover_1 A Feb. 20, 2024, 5:52 a.m. OK GNU C++20 (64) TESTS 7 0 0
247178917 11fingers A Feb. 19, 2024, 9:05 a.m. OK Go TESTS 7 15 102400
247177047 dm.sizov A Feb. 19, 2024, 8:50 a.m. OK Go TESTS 7 31 102400
247195892 ramitg254 A Feb. 19, 2024, 11:29 a.m. OK Java 21 TESTS 7 217 307200
247200969 leoncn A Feb. 19, 2024, 12:12 p.m. OK Java 21 TESTS 7 218 0
247190283 Shaker_32 A Feb. 19, 2024, 10:38 a.m. OK Java 21 TESTS 7 233 512000
247158770 Eren-Yeager A Feb. 19, 2024, 5:18 a.m. OK Java 21 TESTS 7 248 102400
247197519 am2003_ A Feb. 19, 2024, 11:43 a.m. OK Java 21 TESTS 7 249 307200
247139266 4ALL A Feb. 18, 2024, 7:56 p.m. OK Java 21 TESTS 7 249 307200
247200036 hitesh21392 A Feb. 19, 2024, 12:04 p.m. OK Java 21 TESTS 7 249 512000
247421701 himneesh9 A Feb. 20, 2024, 4:02 a.m. OK Java 21 TESTS 7 249 819200
247150079 DOOMJUICE A Feb. 18, 2024, 10:57 p.m. OK Java 21 TESTS 7 264 102400
247418684 net12k44 A Feb. 20, 2024, 3:23 a.m. OK Java 21 TESTS 7 264 512000
247212260 jef771 A Feb. 19, 2024, 1:35 p.m. OK Java 8 TESTS 7 108 0
247148949 Darko A Feb. 18, 2024, 10:30 p.m. OK Java 8 TESTS 7 108 0
247184802 Gavind A Feb. 19, 2024, 9:51 a.m. OK Java 8 TESTS 7 109 0
247128939 etian6795 A Feb. 18, 2024, 6:11 p.m. OK Java 8 TESTS 7 124 0
247150891 Sumitsingh7 A Feb. 19, 2024, 3:42 a.m. OK Java 8 TESTS 7 124 6348800
247216619 Krish17 A Feb. 19, 2024, 2:07 p.m. OK Java 8 TESTS 7 140 0
247426542 217R1A05H1 A Feb. 20, 2024, 5:07 a.m. OK Java 8 TESTS 7 155 0
247420838 Pravalika_1704 A Feb. 20, 2024, 3:51 a.m. OK Java 8 TESTS 7 155 0
247413892 Abdulazizfhi A Feb. 20, 2024, 2:15 a.m. OK Java 8 TESTS 7 155 0
247185788 190y A Feb. 19, 2024, 9:59 a.m. OK Java 8 TESTS 7 155 0
247207081 stillnotyet A Feb. 19, 2024, 12:59 p.m. OK Kotlin 1.7 TESTS 7 280 1536000
247399256 janpe A Feb. 19, 2024, 9:21 p.m. OK Kotlin 1.9 TESTS 7 124 0
247429309 Abhay_Sharma A Feb. 20, 2024, 5:39 a.m. OK MS C++ 2017 TESTS 7 15 0
247212955 relishedbus A Feb. 19, 2024, 1:40 p.m. OK MS C++ 2017 TESTS 7 15 0
247188779 twispifoxy A Feb. 19, 2024, 10:24 a.m. OK MS C++ 2017 TESTS 7 15 0
247145970 itz_me_priyansh69 A Feb. 18, 2024, 9:30 p.m. OK MS C++ 2017 TESTS 7 15 0
247142982 Gadi A Feb. 18, 2024, 8:45 p.m. OK MS C++ 2017 TESTS 7 15 0
247389131 nikhil_bande45 A Feb. 19, 2024, 7:27 p.m. OK MS C++ 2017 TESTS 7 30 0
247188408 BAKUBAM A Feb. 19, 2024, 10:21 a.m. OK MS C++ 2017 TESTS 7 30 0
247172852 aluckyboy A Feb. 19, 2024, 8:17 a.m. OK MS C++ 2017 TESTS 7 31 0
247128909 KasD A Feb. 18, 2024, 6:11 p.m. OK MS C++ 2017 TESTS 7 31 0
247157581 sushilm2011 A Feb. 19, 2024, 5:06 a.m. OK Node.js TESTS 7 124 7168000
247402042 muthm A Feb. 19, 2024, 10:05 p.m. OK Perl TESTS 7 77 1638400
247129640 crapcode A Feb. 18, 2024, 6:17 p.m. OK PHP TESTS 7 62 0
247184063 amin2783 A Feb. 19, 2024, 9:44 a.m. OK PyPy 3 TESTS 7 156 5222400
247135591 ErikUs A Feb. 18, 2024, 7:16 p.m. OK PyPy 3 TESTS 7 170 5222400
247187549 Nikhil0007 A Feb. 19, 2024, 10:14 a.m. OK PyPy 3 TESTS 7 171 5017600
247217026 DynammicProgrammer A Feb. 19, 2024, 2:10 p.m. OK PyPy 3 TESTS 7 171 5529600
247172581 v.bonifaci A Feb. 19, 2024, 8:14 a.m. OK PyPy 3 TESTS 7 171 5632000
247336617 Gollansky01 A Feb. 19, 2024, 4:07 p.m. OK PyPy 3 TESTS 7 218 5529600
247153642 nealzane A Feb. 19, 2024, 4:19 a.m. OK PyPy 3 TESTS 7 265 5939200
247330014 reijnnn A Feb. 19, 2024, 3:58 p.m. OK PyPy 3-64 TESTS 7 77 1843200
247197360 Exyon75 A Feb. 19, 2024, 11:41 a.m. OK PyPy 3-64 TESTS 7 77 2252800
247125413 motsuni04 A Feb. 18, 2024, 5:40 p.m. OK PyPy 3-64 TESTS 7 77 2969600
247415447 hellothisisme A Feb. 20, 2024, 2:40 a.m. OK PyPy 3-64 TESTS 7 77 3276800
247150801 InHng A Feb. 19, 2024, 3:41 a.m. OK PyPy 3-64 TESTS 7 78 3584000
247417354 MdAbedin A Feb. 20, 2024, 3:06 a.m. OK PyPy 3-64 TESTS 7 78 4403200
247405815 Pearlb1ue A Feb. 19, 2024, 11:35 p.m. OK PyPy 3-64 TESTS 7 78 4505600
247139176 anaghninja432 A Feb. 18, 2024, 7:55 p.m. OK PyPy 3-64 TESTS 7 93 3481600
247194204 GirirajParik_08 A Feb. 19, 2024, 11:14 a.m. OK PyPy 3-64 TESTS 7 93 4198400
247127696 cybsbbb A Feb. 18, 2024, 6:01 p.m. OK PyPy 3-64 TESTS 7 93 5939200
247380502 boogeymanJW A Feb. 19, 2024, 6:12 p.m. OK Python 2 TESTS 7 46 102400
247349874 maxus_red A Feb. 19, 2024, 4:25 p.m. OK Python 3 TESTS 7 31 0
247175674 dase25 A Feb. 19, 2024, 8:38 a.m. OK Python 3 TESTS 7 31 0
247217886 gannouni_mohamedamine A Feb. 19, 2024, 2:16 p.m. OK Python 3 TESTS 7 31 102400
247197036 Arthuryang627 A Feb. 19, 2024, 11:39 a.m. OK Python 3 TESTS 7 31 102400
247152780 hushbek_2009 A Feb. 19, 2024, 4:08 a.m. OK Python 3 TESTS 7 31 102400
247148802 skye2earth A Feb. 18, 2024, 10:26 p.m. OK Python 3 TESTS 7 46 0
247428974 ovi_ivo A Feb. 20, 2024, 5:35 a.m. OK Python 3 TESTS 7 46 102400
247425193 anurberdi A Feb. 20, 2024, 4:52 a.m. OK Python 3 TESTS 7 46 102400
247390453 billythebishop4 A Feb. 19, 2024, 7:40 p.m. OK Python 3 TESTS 7 46 102400
247389902 Ratery A Feb. 19, 2024, 7:35 p.m. OK Python 3 TESTS 7 46 102400
247192840 robostac A Feb. 19, 2024, 11:01 a.m. OK Rust 2021 TESTS 7 15 0
247219220 azryx0 A Feb. 19, 2024, 2:27 p.m. OK Rust 2021 TESTS 7 30 102400

remove filters

Back to search problems