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.
Problems
B'In an ICPC contest, balloons are distributed as follows: Determine the total number of balloons that the teams received. Note that some problems may be solved by none of the teams. The first line of the input contains an integer t ( 1 <= q t <= q 100 ) -- the number of testcases. The first line of each test case contains an integer n ( 1 <= q n <= q 50 ) -- the length of the string. The second line of each test case contains a string s of length n consisting of uppercase English letters, denoting the order of solved problems. For each test case, output a single integer -- the total number of balloons that the teams received. In the first test case, 5 balloons are given out: In the second test case, there is only one problem solved. The team who solved it receives 2 balloons: one because they solved the problem, an an additional one because they are the first team to solve problem textsf{A} . '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
163960530 |
bluemegane |
B |
July 12, 2022, 10:01 p.m. |
OK |
C# 8 |
TESTS |
3 |
62 |
102400 |
|
|
163950168 |
naumov1024 |
B |
July 12, 2022, 7:03 p.m. |
OK |
C# 8 |
TESTS |
3 |
93 |
102400 |
|
|
163982689 |
Mohit-sankhla02 |
B |
July 13, 2022, 5:03 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
30 |
0 |
|
|
163943592 |
janv |
B |
July 12, 2022, 6:02 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
163945319 |
charan68 |
B |
July 12, 2022, 6:16 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
15 |
0 |
|
|
163935619 |
Belyashmat |
B |
July 12, 2022, 5:10 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
163952400 |
mainuddin_ |
B |
July 12, 2022, 7:28 p.m. |
OK |
GNU C11 |
TESTS |
3 |
0 |
0 |
|
|
163954056 |
ashitamv |
B |
July 12, 2022, 7:50 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163939202 |
YaoMo |
B |
July 12, 2022, 5:29 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163963779 |
arman_bhaai |
B |
July 12, 2022, 11:42 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163965176 |
Sadman_Turjo |
B |
July 13, 2022, 12:24 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163983295 |
lightflash |
B |
July 13, 2022, 5:10 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163941236 |
Sarna_Das |
B |
July 12, 2022, 5:44 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163946526 |
paul69 |
B |
July 12, 2022, 6:27 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163951648 |
adnan_1220 |
B |
July 12, 2022, 7:19 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163952714 |
siddhu_441 |
B |
July 12, 2022, 7:32 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
163983222 |
mzycNATO |
B |
July 13, 2022, 5:10 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163982596 |
Sayan_Jasu |
B |
July 13, 2022, 5:02 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163982129 |
Om_1710 |
B |
July 13, 2022, 4:56 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163981409 |
Abinay_44 |
B |
July 13, 2022, 4:46 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163981119 |
TRR |
B |
July 13, 2022, 4:42 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163980154 |
garvitakbasantani |
B |
July 13, 2022, 4:28 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163979168 |
aditya_shah |
B |
July 13, 2022, 4:13 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163986752 |
hargun_123 |
B |
July 13, 2022, 5:50 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163985318 |
mahaS |
B |
July 13, 2022, 5:34 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163983799 |
AaronLin |
B |
July 13, 2022, 5:17 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
163985376 |
yuuki1732 |
B |
July 13, 2022, 5:35 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163985875 |
Necend |
B |
July 13, 2022, 5:41 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163985916 |
coder_monkey |
B |
July 13, 2022, 5:41 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163986395 |
marooonik |
B |
July 13, 2022, 5:47 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163986537 |
Serendipity__ |
B |
July 13, 2022, 5:48 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163986557 |
ritvikiitksingh |
B |
July 13, 2022, 5:48 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163986759 |
Charitra |
B |
July 13, 2022, 5:51 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163983685 |
priyanshkumar50 |
B |
July 13, 2022, 5:15 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163983639 |
LeslieKang |
B |
July 13, 2022, 5:15 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163982865 |
invisible00 |
B |
July 13, 2022, 5:05 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
163985484 |
JustinRochester |
B |
July 13, 2022, 5:36 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163986277 |
Amata12138 |
B |
July 13, 2022, 5:46 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163986025 |
anuragkumar06243 |
B |
July 13, 2022, 5:43 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163985706 |
keaimaomaotou |
B |
July 13, 2022, 5:39 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163984851 |
ithinkimloosingmymind |
B |
July 13, 2022, 5:29 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163983991 |
AkhileshBhasale |
B |
July 13, 2022, 5:19 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163982861 |
Restarted_lghhh |
B |
July 13, 2022, 5:05 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163982612 |
alif_cse_ju |
B |
July 13, 2022, 5:02 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163981390 |
Chet8n |
B |
July 13, 2022, 4:46 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163977042 |
Haven_ |
B |
July 13, 2022, 3:40 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
163983291 |
StonedSloth |
B |
July 13, 2022, 5:10 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163984331 |
janhavi_verma_c2 |
B |
July 13, 2022, 5:23 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163985147 |
2354420611 |
B |
July 13, 2022, 5:33 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163985177 |
kartiki05 |
B |
July 13, 2022, 5:33 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163985372 |
Ichigo21 |
B |
July 13, 2022, 5:35 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163985443 |
5A21D |
B |
July 13, 2022, 5:36 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163985544 |
dhwajgupta100 |
B |
July 13, 2022, 5:37 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163986019 |
im_veer29 |
B |
July 13, 2022, 5:43 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163986454 |
L0rD_1 |
B |
July 13, 2022, 5:48 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163987162 |
D_Evour_God |
B |
July 13, 2022, 5:54 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
163973619 |
JinerGenkai |
B |
July 13, 2022, 2:50 a.m. |
OK |
Go |
TESTS |
3 |
31 |
0 |
|
|
163961050 |
wickedpro |
B |
July 12, 2022, 10:15 p.m. |
OK |
Java 11 |
TESTS |
3 |
140 |
0 |
|
|
163939963 |
gurkaran_s |
B |
July 12, 2022, 5:34 p.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
163977062 |
powervic08 |
B |
July 13, 2022, 3:41 a.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
163976088 |
srikanthreddy691 |
B |
July 13, 2022, 3:26 a.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
163972846 |
kamannb |
B |
July 13, 2022, 2:39 a.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
163969913 |
aditya2024 |
B |
July 13, 2022, 1:53 a.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
163960546 |
pranp_24 |
B |
July 12, 2022, 10:02 p.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
163985337 |
eshan18.09 |
B |
July 13, 2022, 5:35 a.m. |
OK |
Java 11 |
TESTS |
3 |
156 |
0 |
|
|
163935656 |
hksenpai |
B |
July 12, 2022, 5:10 p.m. |
OK |
Java 11 |
TESTS |
3 |
170 |
0 |
|
|
163987250 |
Lavender_81 |
B |
July 13, 2022, 5:55 a.m. |
OK |
Java 11 |
TESTS |
3 |
171 |
0 |
|
|
163952357 |
Bahaalization |
B |
July 12, 2022, 7:28 p.m. |
OK |
Java 17 |
TESTS |
3 |
140 |
0 |
|
|
163985989 |
matrix.mk2 |
B |
July 13, 2022, 5:42 a.m. |
OK |
Java 17 |
TESTS |
3 |
155 |
0 |
|
|
163938244 |
s_singh025 |
B |
July 12, 2022, 5:23 p.m. |
OK |
Java 17 |
TESTS |
3 |
186 |
512000 |
|
|
163943604 |
akkuishere |
B |
July 12, 2022, 6:02 p.m. |
OK |
Java 17 |
TESTS |
3 |
187 |
409600 |
|
|
163983638 |
technuts01 |
B |
July 13, 2022, 5:15 a.m. |
OK |
Java 17 |
TESTS |
3 |
218 |
409600 |
|
|
163947168 |
sanayasmeen687 |
B |
July 12, 2022, 6:33 p.m. |
OK |
Java 17 |
TESTS |
3 |
218 |
409600 |
|
|
163946613 |
rish1896 |
B |
July 12, 2022, 6:27 p.m. |
OK |
Java 8 |
TESTS |
3 |
77 |
0 |
|
|
163966865 |
Loomak |
B |
July 13, 2022, 1:02 a.m. |
OK |
Java 8 |
TESTS |
3 |
92 |
0 |
|
|
163956464 |
Ancient_One |
B |
July 12, 2022, 8:30 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
163941852 |
BhargavModha |
B |
July 12, 2022, 5:48 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
163941458 |
eteshb |
B |
July 12, 2022, 5:46 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
163936973 |
AhmedAlArousi |
B |
July 12, 2022, 5:16 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
163946241 |
shivank111chauhan |
B |
July 12, 2022, 6:24 p.m. |
OK |
Java 8 |
TESTS |
3 |
108 |
0 |
|
|
163979222 |
kaushal_03 |
B |
July 13, 2022, 4:13 a.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
0 |
|
|
163975957 |
yaswanth_coder |
B |
July 13, 2022, 3:24 a.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
0 |
|
|
163952930 |
ddevansh82 |
B |
July 12, 2022, 7:35 p.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
0 |
|
|
163971435 |
qihnus |
B |
July 13, 2022, 2:18 a.m. |
OK |
Kotlin 1.6 |
TESTS |
3 |
171 |
0 |
|
|
163963953 |
bhaa |
B |
July 12, 2022, 11:48 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
163959393 |
abdoshaisha |
B |
July 12, 2022, 9:33 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
163959341 |
HappyFall |
B |
July 12, 2022, 9:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
163950276 |
khairyhoda381 |
B |
July 12, 2022, 7:04 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
163937416 |
Nur_Nayeem |
B |
July 12, 2022, 5:18 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
163963972 |
bhaa |
B |
July 12, 2022, 11:48 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
163961702 |
sky_. |
B |
July 12, 2022, 10:33 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
163961529 |
RX_Arex |
B |
July 12, 2022, 10:28 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
163951011 |
AhmedAbdEllatif |
B |
July 12, 2022, 7:12 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
163936827 |
hebatarek1782002 |
B |
July 12, 2022, 5:15 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
163970779 |
hkhkhkkhk53453 |
B |
July 13, 2022, 2:08 a.m. |
OK |
Node.js |
TESTS |
3 |
46 |
614400 |
|
|
163962677 |
hemalrika |
B |
July 12, 2022, 11:03 p.m. |
OK |
PHP |
TESTS |
3 |
30 |
0 |
|
|
163980651 |
lakshay_jain |
B |
July 13, 2022, 4:35 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
61 |
1843200 |
|
|
163941172 |
gotcoding124 |
B |
July 12, 2022, 5:43 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
62 |
0 |
|
|
163935957 |
kartikeya45 |
B |
July 12, 2022, 5:11 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
62 |
0 |
|
|
163987703 |
Ansaf_123 |
B |
July 13, 2022, 6 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
163983505 |
Ansaf_123 |
B |
July 13, 2022, 5:13 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
163941951 |
raushnn |
B |
July 12, 2022, 5:49 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
163983052 |
onepeopleheart |
B |
July 13, 2022, 5:08 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
1331200 |
|
|
163970829 |
Abdullah_Qayyum |
B |
July 13, 2022, 2:08 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
1331200 |
|
|
163954463 |
zro9i |
B |
July 12, 2022, 7:55 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
1331200 |
|
|
163943145 |
SRARDI |
B |
July 12, 2022, 5:59 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
1331200 |
|
|
163975905 |
mrng |
B |
July 13, 2022, 3:23 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
31 |
0 |
|
|
163986772 |
Muhammad.Junaid.Faheem |
B |
July 13, 2022, 5:51 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163984274 |
Muhammad.Junaid.Faheem |
B |
July 13, 2022, 5:22 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163983770 |
niumeng |
B |
July 13, 2022, 5:16 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163982295 |
only_noob |
B |
July 13, 2022, 4:58 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163978031 |
chan_uuu |
B |
July 13, 2022, 3:56 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163969512 |
Uchia_Sasuke |
B |
July 13, 2022, 1:47 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163949403 |
TecHeReTiC |
B |
July 12, 2022, 6:55 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163943436 |
Tataie |
B |
July 12, 2022, 6:01 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163936643 |
ayush190 |
B |
July 12, 2022, 5:14 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
163972499 |
chang_liang |
B |
July 13, 2022, 2:34 a.m. |
OK |
Python 3 |
TESTS |
3 |
15 |
0 |
|
|
163983708 |
RadhaMPaurana |
B |
July 13, 2022, 5:15 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163973020 |
medmallek6 |
B |
July 13, 2022, 2:42 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163969777 |
Mian_Talha_g |
B |
July 13, 2022, 1:51 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163969070 |
_syed_badar_ |
B |
July 13, 2022, 1:41 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163969003 |
MHAII |
B |
July 13, 2022, 1:40 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163957451 |
hannibal404 |
B |
July 12, 2022, 8:51 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163955285 |
Parkatark |
B |
July 12, 2022, 8:07 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163949153 |
mado4335 |
B |
July 12, 2022, 6:52 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
163940108 |
DUbick |
B |
July 12, 2022, 5:35 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
remove filters
Back to search problems