Submission #7444053
Source Code Expand
A,B,N=map(x->parse(Int,x),split(readline())) for c=chomp(readline()) if c=='S'&&A>0 A-=1 elseif c=='C'&&B>0 B-=1 elseif c=='E'&&A+B>0 if A>=B A-=1 else B-=1 end end end println("$A $B")
Submission Info
Submission Time | |
---|---|
Task | B - 洋菓子店 |
User | kotatsugame |
Language | Julia (0.5.0) |
Score | 200 |
Code Size | 239 Byte |
Status | AC |
Exec Time | 385 ms |
Memory | 116208 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 | 385 ms | 116208 KB |
02.txt | AC | 368 ms | 110092 KB |
03.txt | AC | 374 ms | 112388 KB |
04.txt | AC | 376 ms | 112404 KB |
05.txt | AC | 361 ms | 107744 KB |
06.txt | AC | 382 ms | 114436 KB |
07.txt | AC | 361 ms | 109592 KB |
08.txt | AC | 354 ms | 108904 KB |
sample-01.txt | AC | 357 ms | 108484 KB |
sample-02.txt | AC | 354 ms | 106268 KB |
sample-03.txt | AC | 353 ms | 106504 KB |
sample-04.txt | AC | 355 ms | 108716 KB |