Codeforces Round 1101 (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
2232 Codeforces Round 1101 (Div. 2) FINISHED False 7200 1956304 May 30, 2026, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 11047 ) C1 Seating Arrangement (Easy Version) PROGRAMMING binary search dp greedy ternary search two pointers

This is the Easy version of the problem. The difference between the versions is that in this version, the constraints on (n), (x), (s), (t) are smaller. You can hack only if you solved all versions of this problem. Alice's friends have come to the party, and now they are lining up to enter the party. There are (x) tables at the party with (s) seats each. Each seat can only hold one person. Each friend has one of these three following personalities: Introverts ( I ) who have to sit at an empty table Extroverts ( E ) who have to sit at a non-empty table Ambiverts ( A ) who can sit at any table. Initially, every seat is empty. However, because Alice was eating cakes, her friends had already formed a line, which Alice cannot change their order. For each person in the line, Alice has to assign them a table or kick them out of the party. Each person is seated before the next person is assigned a table. Wanting to have a lot of fun at the party, Alice needs to seat as many people as she can at the party. Help her find the maximum number of friends she can have at the party. Note that once a friend is seated, they are not allowed to move even if they are not seated according to their personality anymore. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 500)). The description of the test cases follows. The first line of each test case contains three integers (n), (x), and (s) ((1 \le n,x,s \le 3000)) – the number of Alice's friends, the number of tables, and the number of seats per table. The second line contains a string (u) of length (n) consisting only of the letters A , E , and I , representing an ambivert, extrovert, and introvert respectively. It is guaranteed that the sum of (n) for all test cases is at most (3000). For each test case, output an integer: the maximum number of people seated. In the first test case, there are (2) tables

Tutorials

Codeforces Round 1101 (Div. 2) — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
376696383 Misha001_10 C1 May 30, 2026, 4:22 p.m. OK C# 13 TESTS 20 62 13004800
376709055 GotuZeno C1 May 30, 2026, 6:10 p.m. OK C# 13 TESTS 20 78 13004800
376742651 Mehedi_Hasan_Arzu C1 May 31, 2026, 5:36 a.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376735286 anxiaoyang C1 May 31, 2026, 3:51 a.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376735122 Rishi1240 C1 May 31, 2026, 3:47 a.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376724947 MN3M C1 May 30, 2026, 10:45 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376723994 GutoMS C1 May 30, 2026, 10:11 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376723507 R4gebaiTer C1 May 30, 2026, 9:54 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376723200 desiaarjav C1 May 30, 2026, 9:46 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376722748 Shash__wat C1 May 30, 2026, 9:34 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376720991 adarshSingh003 C1 May 30, 2026, 8:56 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376719115 pseudo404 C1 May 30, 2026, 8:18 p.m. OK C++17 (GCC 7-32) TESTS 20 31 0
376745391 sankha45 C1 May 31, 2026, 6:10 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376744273 Sunshyne C1 May 31, 2026, 5:56 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376742141 Lazy_noob_Dipro C1 May 31, 2026, 5:29 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376742134 Jakkala_Sathish_Kumar C1 May 31, 2026, 5:29 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376741876 alikearnii C1 May 31, 2026, 5:25 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376740578 hospite C1 May 31, 2026, 5:07 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376739678 mfaiz_1 C1 May 31, 2026, 4:52 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376738776 prat_cf C1 May 31, 2026, 4:38 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376738090 catandcode C1 May 31, 2026, 4:25 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376736651 aadityarajput636 C1 May 31, 2026, 4:18 a.m. OK C++20 (GCC 13-64) TESTS 20 31 0
376745478 badejyothiswaroop C1 May 31, 2026, 6:11 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376745435 Sylvie14 C1 May 31, 2026, 6:10 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376745415 raj_7061 C1 May 31, 2026, 6:10 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376745242 verkan09 C1 May 31, 2026, 6:08 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376743725 gyan_xyz C1 May 31, 2026, 5:49 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376743509 vimalsingh62021 C1 May 31, 2026, 5:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376743273 White-Ghost C1 May 31, 2026, 5:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376742742 planetguy C1 May 31, 2026, 5:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376742669 dpkbihani C1 May 31, 2026, 5:36 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376742632 mr_cool123 C1 May 31, 2026, 5:36 a.m. OK C++23 (GCC 14-64, msys2) TESTS 20 31 0
376690521 rdcrishiag C1 May 30, 2026, 4:09 p.m. OK GNU C11 TESTS 20 15 0
376695517 nwaliyevwe C1 May 30, 2026, 4:20 p.m. OK GNU C11 TESTS 20 31 0
376690634 Nipunkumarreddy C1 May 30, 2026, 4:09 p.m. OK GNU C11 TESTS 20 31 0
376720252 1435730 C1 May 30, 2026, 8:41 p.m. OK GNU C11 TESTS 20 31 102400
376696105 Shiva_Ganesh C1 May 30, 2026, 4:22 p.m. OK GNU C11 TESTS 20 31 102400
376701105 prof.paradox C1 May 30, 2026, 4:31 p.m. OK GNU C11 TESTS 20 46 0
376690078 aaryansaxena1810 C1 May 30, 2026, 4:08 p.m. OK Java 21 TESTS 20 187 204800
376694848 dEv_005 C1 May 30, 2026, 4:19 p.m. OK Java 21 TESTS 20 203 204800
376734428 bankaiiii C1 May 31, 2026, 3:33 a.m. OK Java 21 TESTS 20 203 307200
376701555 gade_ruthwik C1 May 30, 2026, 4:32 p.m. OK Java 21 TESTS 20 203 307200
376724602 neilchetty C1 May 30, 2026, 10:32 p.m. OK Java 21 TESTS 20 203 512000
376724037 neilchetty C1 May 30, 2026, 10:12 p.m. OK Java 21 TESTS 20 203 512000
376697429 tanu10162005 C1 May 30, 2026, 4:24 p.m. OK Java 21 TESTS 20 203 512000
376731582 oishiki22 C1 May 31, 2026, 2:36 a.m. OK Java 21 TESTS 20 203 716800
376697585 iGNiZ_123 C1 May 30, 2026, 4:25 p.m. OK Java 21 TESTS 20 203 716800
376692729 GuLLu05 C1 May 30, 2026, 4:14 p.m. OK Java 21 TESTS 20 203 1740800
376731216 sourabhrathore C1 May 31, 2026, 2:27 a.m. OK Java 8 TESTS 20 109 0
376714288 TheJavaGuy C1 May 30, 2026, 7:03 p.m. OK Java 8 TESTS 20 109 0
376700855 aj6865 C1 May 30, 2026, 4:31 p.m. OK Java 8 TESTS 20 140 0
376694678 Aniket_Kumar_10 C1 May 30, 2026, 4:19 p.m. OK Java 8 TESTS 20 140 0
376689543 WhoHeRemains C1 May 30, 2026, 4:07 p.m. OK Java 8 TESTS 20 140 0
376696808 Aditya_invinscible C1 May 30, 2026, 4:23 p.m. OK Java 8 TESTS 20 156 0
376691900 VikrantYadav2005 C1 May 30, 2026, 4:12 p.m. OK Java 8 TESTS 20 156 0
376693688 Ishan1509 C1 May 30, 2026, 4:16 p.m. OK Java 8 TESTS 20 156 16896000
376700902 Abhishek_codeforces1 C1 May 30, 2026, 4:31 p.m. OK Java 8 TESTS 20 171 0
376697377 BabluD C1 May 30, 2026, 4:24 p.m. OK Java 8 TESTS 20 171 4915200
376731716 rafaelguasselli C1 May 31, 2026, 2:39 a.m. OK PyPy 3 TESTS 20 93 2457600
376695730 ps2006 C1 May 30, 2026, 4:21 p.m. OK PyPy 3 TESTS 20 140 4505600
376697925 SuryaPrakashMC C1 May 30, 2026, 4:25 p.m. OK PyPy 3 TESTS 20 156 4198400
376690382 Akshatgupta069_069 C1 May 30, 2026, 4:09 p.m. OK PyPy 3 TESTS 20 156 5427200
376697383 Hanyun C1 May 30, 2026, 4:24 p.m. OK PyPy 3 TESTS 20 171 14643200
376699022 mathjams C1 May 30, 2026, 4:28 p.m. OK PyPy 3 TESTS 20 203 3174400
376692703 MoltenMan6 C1 May 30, 2026, 4:14 p.m. OK PyPy 3-64 TESTS 20 62 2048000
376692671 eggoil166 C1 May 30, 2026, 4:14 p.m. OK PyPy 3-64 TESTS 20 78 1433600
376693487 omkar172 C1 May 30, 2026, 4:16 p.m. OK PyPy 3-64 TESTS 20 78 1536000
376715233 pearl62 C1 May 30, 2026, 7:17 p.m. OK PyPy 3-64 TESTS 20 78 1638400
376744211 MdKhanBahadurSadi C1 May 31, 2026, 5:55 a.m. OK PyPy 3-64 TESTS 20 78 1945600
376745132 dev_roast99 C1 May 31, 2026, 6:07 a.m. OK PyPy 3-64 TESTS 20 78 2048000
376699159 ThePrince2912 C1 May 30, 2026, 4:28 p.m. OK PyPy 3-64 TESTS 20 78 2048000
376697461 kazukun1311 C1 May 30, 2026, 4:24 p.m. OK PyPy 3-64 TESTS 20 78 2150400
376714838 VGCos C1 May 30, 2026, 7:11 p.m. OK PyPy 3-64 TESTS 20 78 2252800
376699243 Xevon C1 May 30, 2026, 4:28 p.m. OK PyPy 3-64 TESTS 20 78 2662400
376734896 bdv C1 May 31, 2026, 3:43 a.m. OK Python 3 TESTS 20 46 102400
376734636 bdv C1 May 31, 2026, 3:38 a.m. OK Python 3 TESTS 20 62 102400
376691356 dnandi444 C1 May 30, 2026, 4:11 p.m. OK Python 3 TESTS 20 62 102400
376718130 ayush_092005 C1 May 30, 2026, 8:01 p.m. OK Python 3 TESTS 20 62 204800
376701891 VishrutGrover C1 May 30, 2026, 4:33 p.m. OK Python 3 TESTS 20 62 204800
376697341 amod_24 C1 May 30, 2026, 4:24 p.m. OK Python 3 TESTS 20 62 204800
376722436 eteresh C1 May 30, 2026, 9:27 p.m. OK Python 3 TESTS 20 187 102400
376697391 callme8samay C1 May 30, 2026, 4:24 p.m. OK Python 3 TESTS 20 296 307200
376694295 ShubhamY09 C1 May 30, 2026, 4:18 p.m. OK Python 3 TESTS 20 359 307200
376700302 Venom2410 C1 May 30, 2026, 4:31 p.m. OK Python 3 TESTS 20 375 307200
376693169 joyful_jason C1 May 30, 2026, 4:15 p.m. OK Ruby 3 TESTS 20 1812 23654400
376730816 Tantellam C1 May 31, 2026, 2:17 a.m. OK Rust 2024 TESTS 20 46 11776000
376689497 JustAndreyka C1 May 30, 2026, 4:07 p.m. OK Rust 2024 TESTS 20 46 11776000

remove filters

Back to search problems