Submission #19559076


Source Code Expand

Copy
data = input().split()
quiz = list(input())
N = int(data[0])
X = int(data[1])
count = 0 + X
for q in range(N):
    if quiz[q] == 'o':
        count = count + 1
    if quiz[q] == 'x' and count > 0:
        count = count - 1
    else: 
        continue

print(count)

Submission Info

Submission Time
Task B - Quizzes
User wave314
Language Python (3.8.2)
Score 200
Code Size 281 Byte
Status AC
Exec Time 71 ms
Memory 10452 KB

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 39 ms 9420 KB
random_02.txt AC 44 ms 9908 KB
random_03.txt AC 24 ms 9128 KB
random_04.txt AC 60 ms 10272 KB
random_05.txt AC 66 ms 10452 KB
random_06.txt AC 68 ms 10336 KB
random_07.txt AC 71 ms 10332 KB
sample_01.txt AC 22 ms 9004 KB
sample_02.txt AC 22 ms 9120 KB
sample_03.txt AC 17 ms 8892 KB