Submission #19557952


Source Code Expand

Copy
N, X = map(int, input().split())
S = list(input())
for i in S:
  if i == "o":
    X += 1
  elif i == "x":
    X -= 1
  if X <= 0:
    X = 0
print(X)

Submission Info

Submission Time
Task B - Quizzes
User lbxpsv
Language PyPy3 (7.3.0)
Score 200
Code Size 157 Byte
Status AC
Exec Time 86 ms
Memory 73116 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 86 ms 69200 KB
random_02.txt AC 67 ms 71164 KB
random_03.txt AC 62 ms 64352 KB
random_04.txt AC 71 ms 72748 KB
random_05.txt AC 68 ms 73116 KB
random_06.txt AC 71 ms 72864 KB
random_07.txt AC 67 ms 72692 KB
sample_01.txt AC 54 ms 61384 KB
sample_02.txt AC 52 ms 61064 KB
sample_03.txt AC 56 ms 61316 KB