Submission #18307906


Source Code Expand

N,X=map(int,input().split())
S=input()

for s in S:
    if s=="o":
        X+=1
    elif X>0:
        X-=1
print(X)

Submission Info

Submission Time
Task B - Quizzes
User Kazu1998k
Language Python (3.8.2)
Score 200
Code Size 125 Byte
Status AC
Exec Time 47 ms
Memory 9408 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 33 ms 9204 KiB
random_02.txt AC 37 ms 9128 KiB
random_03.txt AC 19 ms 9052 KiB
random_04.txt AC 37 ms 9408 KiB
random_05.txt AC 40 ms 9132 KiB
random_06.txt AC 47 ms 9248 KiB
random_07.txt AC 41 ms 9312 KiB
sample_01.txt AC 17 ms 8852 KiB
sample_02.txt AC 25 ms 8860 KiB
sample_03.txt AC 17 ms 8848 KiB