Submission #9967333
Source Code Expand
a, b, n = list(map(int, input().split())) x = input() for char in x: if char == "S": a = max(0, a - 1) if char == "C": b = max(0, b - 1) if char == "E": if a >= b: a = max(0, a - 1) else: b = max(0, b - 1) print(a) print(b)
Submission Info
Submission Time | |
---|---|
Task | B - 洋菓子店 |
User | neterukun |
Language | PyPy3 (2.4.0) |
Score | 200 |
Code Size | 308 Byte |
Status | AC |
Exec Time | 189 ms |
Memory | 40816 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, sample-04.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, sample-01.txt, sample-02.txt, sample-03.txt, sample-04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 171 ms | 39280 KB |
02.txt | AC | 182 ms | 40048 KB |
03.txt | AC | 179 ms | 39920 KB |
04.txt | AC | 179 ms | 39792 KB |
05.txt | AC | 178 ms | 39536 KB |
06.txt | AC | 189 ms | 40816 KB |
07.txt | AC | 175 ms | 39280 KB |
08.txt | AC | 165 ms | 38256 KB |
sample-01.txt | AC | 164 ms | 38256 KB |
sample-02.txt | AC | 166 ms | 38384 KB |
sample-03.txt | AC | 163 ms | 38256 KB |
sample-04.txt | AC | 169 ms | 38480 KB |