Submission #9928855
Source Code Expand
a, b, n = map(int, input().split()) x = input() for i in x: if i == "S": a = max(a-1, 0) elif i == "C": b = max(b-1, 0) else: if a >= b: a = max(a-1, 0) else: b -= 1 print(a, b, sep="\n")
Submission Info
Submission Time | |
---|---|
Task | B - 洋菓子店 |
User | Rssll_Krkgrd |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 233 Byte |
Status | AC |
Exec Time | 45 ms |
Memory | 3188 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 | 37 ms | 3188 KB |
02.txt | AC | 31 ms | 3060 KB |
03.txt | AC | 35 ms | 3060 KB |
04.txt | AC | 35 ms | 3060 KB |
05.txt | AC | 23 ms | 3060 KB |
06.txt | AC | 45 ms | 3188 KB |
07.txt | AC | 19 ms | 3064 KB |
08.txt | AC | 17 ms | 3060 KB |
sample-01.txt | AC | 17 ms | 3064 KB |
sample-02.txt | AC | 17 ms | 3060 KB |
sample-03.txt | AC | 17 ms | 3060 KB |
sample-04.txt | AC | 17 ms | 2940 KB |