Submission #19559780
Source Code Expand
Copy
n,x= map(int,input().split()) #a,b,c,d=list(map(int,input().split())) #n,k= map(int,input().split()) #ab=[list(map(int,input().split())) for _ in range(n)] s=input() #h=[int(input()) for i in range(n)] ans=x for ss in s: if ss=='o': ans+=1 elif ans>0: ans-=1 print(ans)
Submission Info
Submission Time | |
---|---|
Task | B - Quizzes |
User | yuta316 |
Language | PyPy3 (7.3.0) |
Score | 200 |
Code Size | 309 Byte |
Status | AC |
Exec Time | 67 ms |
Memory | 73264 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 67 ms | 67832 KB |
random_02.txt | AC | 62 ms | 72924 KB |
random_03.txt | AC | 52 ms | 64604 KB |
random_04.txt | AC | 59 ms | 73176 KB |
random_05.txt | AC | 60 ms | 73264 KB |
random_06.txt | AC | 52 ms | 63896 KB |
random_07.txt | AC | 52 ms | 63908 KB |
sample_01.txt | AC | 43 ms | 61456 KB |
sample_02.txt | AC | 50 ms | 61568 KB |
sample_03.txt | AC | 49 ms | 61572 KB |