Codeforces Round 1084 (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
2200 Codeforces Round 1084 (Div. 3) FINISHED False 8100 4202723 Feb. 27, 2026, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 20883 ) C Specialty String PROGRAMMING brute force greedy strings

AksLolCoding is playing a game on a string (s) of length (n). Initially, (s) contains only lowercase Latin characters. In one turn, AksLolCoding can choose any pair of integers ((i,j)) such that: (1 \leq i \lt j \leq n); (s_i = s_j \neq *); and (s_k = *) for all (i \lt k \lt j). Once the game ends, AksLolCoding wins if and only if every character in (s) is equal to (*). Determine if it is possible for AksLolCoding to win. Note: (*) represents ASCII character 42. The first line contains an integer (t) ((1 \leq t \leq 100)), the number of test cases. The first line of each test case contains an integer (n) ((1 \leq n \leq 5000)), the length of the string. The second line of each test case contains a string (s) consisting of lowercase Latin characters. The sum of (n) over all test cases does not exceed (5000). Output the answer to each test case on its own line. If AksLolCoding can win, output " YES " (without quotes). Else, output " NO " (without quotes). You can output the answer in any case (upper or lower). For example, the strings " yEs ", " yes ", " Yes ", and " YES " will be recognized as positive responses. In the first test case, it can be shown that it is impossible for AksLolCoding to win. In the second test case, AksLolCoding can win by making the following moves: llmllm (\rightarrow) llm**m (\rightarrow) **m**m (\rightarrow) ****** In the third test case, AksLolCoding can win by making the following moves: uwuuwu (\rightarrow) uw**wu (\rightarrow) u****u (\rightarrow) ******

Tutorials

Codeforces Round 1084 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
364790275 ya_hossein C Feb. 28, 2026, 5:58 a.m. OK C# 13 TESTS 7 62 307200
364724301 arnob_datta C Feb. 27, 2026, 4:28 p.m. OK C# 13 TESTS 7 62 13004800
364729430 KhairulIX C Feb. 27, 2026, 4:41 p.m. OK C# 13 TESTS 7 78 12697600
364780353 evil_code74 C Feb. 28, 2026, 3:30 a.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364774800 lastcoderonearth C Feb. 28, 2026, 1:33 a.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364766223 tanuj_rana07 C Feb. 27, 2026, 10:07 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364761430 satvikjambagi C Feb. 27, 2026, 9 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364758918 Ghost_22 C Feb. 27, 2026, 8:29 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364754898 N1664 C Feb. 27, 2026, 7:50 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364752395 It_Will_Happen_One_Day C Feb. 27, 2026, 7:27 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364751777 aka_Wido0 C Feb. 27, 2026, 7:22 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364749590 subhuamtangar C Feb. 27, 2026, 7:01 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364738793 sarpong C Feb. 27, 2026, 5:22 p.m. OK C++17 (GCC 7-32) TESTS 7 15 0
364787262 Mahesh_Pareta C Feb. 28, 2026, 5:23 a.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364783092 Rayanry9 C Feb. 28, 2026, 4:19 a.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364781687 Bhavya_Shevkani C Feb. 28, 2026, 3:54 a.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364760893 Heba_Eltoukhy C Feb. 27, 2026, 8:53 p.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364753182 tamal_kanti123 C Feb. 27, 2026, 7:33 p.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364752174 secret_room1 C Feb. 27, 2026, 7:25 p.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364737980 thoughtBubble C Feb. 27, 2026, 5:16 p.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364730488 LOKESHIITD C Feb. 27, 2026, 4:43 p.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364729699 Omnia_Ehab C Feb. 27, 2026, 4:41 p.m. OK C++20 (GCC 13-64) TESTS 7 15 0
364788175 trilok_shetty C Feb. 28, 2026, 5:35 a.m. OK C++20 (GCC 13-64) TESTS 7 15 102400
364790834 vishwas_37 C Feb. 28, 2026, 6:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364789076 iam_Rahmatullo C Feb. 28, 2026, 5:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364784824 haimimelon C Feb. 28, 2026, 4:52 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364784164 hhzhexuejia C Feb. 28, 2026, 4:41 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364783771 Shubham_Kankotiya C Feb. 28, 2026, 4:33 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364778806 RAJAB C Feb. 28, 2026, 3 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364774816 shihab_sharar C Feb. 28, 2026, 1:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364769589 rasoulist C Feb. 27, 2026, 11:19 p.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364765807 altair404 C Feb. 27, 2026, 10 p.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364764839 GlenRios C Feb. 27, 2026, 9:45 p.m. OK C++23 (GCC 14-64, msys2) TESTS 7 15 0
364764780 zerojanuary C Feb. 27, 2026, 9:44 p.m. OK GNU C11 TESTS 7 15 0
364735511 ayush93722 C Feb. 27, 2026, 5 p.m. OK GNU C11 TESTS 7 15 0
364734671 DXWSZ C Feb. 27, 2026, 4:55 p.m. OK GNU C11 TESTS 7 15 0
364734176 loop-the-loop C Feb. 27, 2026, 4:52 p.m. OK GNU C11 TESTS 7 15 0
364731927 sj01_codeForces C Feb. 27, 2026, 4:47 p.m. OK GNU C11 TESTS 7 15 0
364728100 Flames_36 C Feb. 27, 2026, 4:38 p.m. OK GNU C11 TESTS 7 15 0
364727468 ishaan_kumar C Feb. 27, 2026, 4:36 p.m. OK GNU C11 TESTS 7 15 0
364726749 heartbeat69 C Feb. 27, 2026, 4:34 p.m. OK GNU C11 TESTS 7 15 0
364725794 rahulshingha313 C Feb. 27, 2026, 4:32 p.m. OK GNU C11 TESTS 7 15 0
364722785 dhiraj_pgcat C Feb. 27, 2026, 4:25 p.m. OK GNU C11 TESTS 7 15 0
364725762 ILikeThemThicc C Feb. 27, 2026, 4:32 p.m. OK Go TESTS 7 31 102400
364786523 NullPath C Feb. 28, 2026, 5:14 a.m. OK Go TESTS 7 31 204800
364773381 testtest111ksjfrdvn C Feb. 28, 2026, 12:59 a.m. OK Java 21 TESTS 7 156 204800
364723022 vineetiwari C Feb. 27, 2026, 4:25 p.m. OK Java 21 TESTS 7 171 204800
364747609 balvantchaudhary C Feb. 27, 2026, 6:41 p.m. OK Java 21 TESTS 7 171 307200
364754341 akasmik C Feb. 27, 2026, 7:45 p.m. OK Java 21 TESTS 7 171 512000
364738632 dxtmanav C Feb. 27, 2026, 5:20 p.m. OK Java 21 TESTS 7 171 614400
364782533 TusharChoudhary7 C Feb. 28, 2026, 4:09 a.m. OK Java 21 TESTS 7 171 716800
364752777 rengoku_07 C Feb. 27, 2026, 7:30 p.m. OK Java 21 TESTS 7 171 716800
364787746 Niraj1207 C Feb. 28, 2026, 5:29 a.m. OK Java 21 TESTS 7 171 1433600
364730718 Tarekhassan C Feb. 27, 2026, 4:44 p.m. OK Java 21 TESTS 7 171 1433600
364724009 prathamesh_lakhapati C Feb. 27, 2026, 4:28 p.m. OK Java 21 TESTS 7 171 1638400
364732229 krish_vodnala C Feb. 27, 2026, 4:47 p.m. OK Java 8 TESTS 7 93 0
364726770 bpravallika_26 C Feb. 27, 2026, 4:34 p.m. OK Java 8 TESTS 7 93 0
364751071 public-static-void-main C Feb. 27, 2026, 7:15 p.m. OK Java 8 TESTS 7 93 16793600
364786584 Vishalll_ C Feb. 28, 2026, 5:15 a.m. OK Java 8 TESTS 7 109 0
364778881 abhayrajnegi0416 C Feb. 28, 2026, 3:01 a.m. OK Java 8 TESTS 7 109 0
364729844 kovendan C Feb. 27, 2026, 4:42 p.m. OK Java 8 TESTS 7 109 0
364726421 Prajeethmutyala C Feb. 27, 2026, 4:33 p.m. OK Java 8 TESTS 7 109 0
364724685 lakshmi_priya87 C Feb. 27, 2026, 4:29 p.m. OK Java 8 TESTS 7 109 0
364746498 MACLOVER C Feb. 27, 2026, 6:30 p.m. OK Java 8 TESTS 7 125 0
364744087 HemanthMaddala C Feb. 27, 2026, 6:09 p.m. OK Java 8 TESTS 7 125 0
364723658 skyblu-ltng C Feb. 27, 2026, 4:27 p.m. OK Kotlin 2.2 TESTS 7 93 23859200
364782741 DoryperPevin C Feb. 28, 2026, 4:13 a.m. OK PyPy 3 TESTS 7 62 1638400
364753569 rk8 C Feb. 27, 2026, 7:37 p.m. OK PyPy 3 TESTS 7 78 1433600
364723173 name_notimportant C Feb. 27, 2026, 4:26 p.m. OK PyPy 3 TESTS 7 78 1536000
364723576 NTT_DAL C Feb. 27, 2026, 4:27 p.m. OK PyPy 3 TESTS 7 78 1638400
364760348 Jcloud C Feb. 27, 2026, 8:47 p.m. OK PyPy 3 TESTS 7 78 2150400
364723391 aluuu_ C Feb. 27, 2026, 4:26 p.m. OK PyPy 3 TESTS 7 93 1331200
364781087 _bored_sloth_ C Feb. 28, 2026, 3:43 a.m. OK PyPy 3 TESTS 7 93 1638400
364722843 karthik252 C Feb. 27, 2026, 4:25 p.m. OK PyPy 3 TESTS 7 93 1638400
364729237 bhashyankumar23 C Feb. 27, 2026, 4:40 p.m. OK PyPy 3 TESTS 7 93 3174400
364725461 Itachi_uchiha0609 C Feb. 27, 2026, 4:31 p.m. OK PyPy 3 TESTS 7 93 3788800
364787281 grind_like_gm C Feb. 28, 2026, 5:24 a.m. OK PyPy 3-64 TESTS 7 46 1433600
364734383 vivek.coder C Feb. 27, 2026, 4:53 p.m. OK PyPy 3-64 TESTS 7 46 1433600
364724707 peanuts. C Feb. 27, 2026, 4:29 p.m. OK PyPy 3-64 TESTS 7 46 1433600
364724601 Khawaja_Assam_Arif C Feb. 27, 2026, 4:29 p.m. OK PyPy 3-64 TESTS 7 46 1433600
364724070 arsh0 C Feb. 27, 2026, 4:28 p.m. OK PyPy 3-64 TESTS 7 46 1433600
364769228 nickindian07 C Feb. 27, 2026, 11:11 p.m. OK PyPy 3-64 TESTS 7 46 1536000
364744153 Bella_247 C Feb. 27, 2026, 6:09 p.m. OK PyPy 3-64 TESTS 7 46 2150400
364772286 gardengnome C Feb. 28, 2026, 12:29 a.m. OK PyPy 3-64 TESTS 7 62 1433600
364758988 muhammadosama984 C Feb. 27, 2026, 8:30 p.m. OK PyPy 3-64 TESTS 7 62 1433600
364738755 sg2560584 C Feb. 27, 2026, 5:21 p.m. OK PyPy 3-64 TESTS 7 62 1433600
364731689 atul_j C Feb. 27, 2026, 4:46 p.m. OK Python 2 TESTS 7 31 0
364766272 Ahmed.Gabr C Feb. 27, 2026, 10:08 p.m. OK Python 3 TESTS 7 31 0
364724502 lfrussell C Feb. 27, 2026, 4:29 p.m. OK Python 3 TESTS 7 31 0
364784037 ITIS_TungDepZai C Feb. 28, 2026, 4:38 a.m. OK Python 3 TESTS 7 46 0
364740750 vivekshah8791 C Feb. 27, 2026, 5:38 p.m. OK Python 3 TESTS 7 46 0
364732921 TanishaSharma C Feb. 27, 2026, 4:49 p.m. OK Python 3 TESTS 7 46 0
364731726 riaz2001 C Feb. 27, 2026, 4:46 p.m. OK Python 3 TESTS 7 46 0
364731568 gss_coder C Feb. 27, 2026, 4:46 p.m. OK Python 3 TESTS 7 46 0
364730860 al.32noman C Feb. 27, 2026, 4:44 p.m. OK Python 3 TESTS 7 46 0
364730373 veerabhadrayerram C Feb. 27, 2026, 4:43 p.m. OK Python 3 TESTS 7 46 0
364730289 naitikdubey213 C Feb. 27, 2026, 4:43 p.m. OK Python 3 TESTS 7 46 0
364723795 hachiko2026 C Feb. 27, 2026, 4:27 p.m. OK Ruby 3 TESTS 7 203 102400
364767418 s5kxlqb86ue7vh4 C Feb. 27, 2026, 10:30 p.m. OK Rust 2024 TESTS 7 15 11776000
364781428 0x81 C Feb. 28, 2026, 3:50 a.m. OK Rust 2024 TESTS 7 31 11776000
364784801 GUAIKATTO C Feb. 28, 2026, 4:51 a.m. OK Rust 2024 TESTS 7 31 24576000

remove filters

Back to search problems