Submission #2603310
Source Code Expand
read a b n;read s; for i in `seq $n`;do case "${s:$[i-1]:1}" in S)$[a?a--:0];; C)$[b?b--:0];; E)$[a>=b?a?a--:0:b?b--:0] esac done; echo $a;echo $b
Submission Info
Submission Time | |
---|---|
Task | B - 洋菓子店 |
User | kotatsugame |
Language | Bash (GNU bash v4.3.11) |
Score | 0 |
Code Size | 162 Byte |
Status | TLE |
Exec Time | 2107 ms |
Memory | 10320 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | TLE | 2104 ms | 8108 KB |
02.txt | TLE | 2103 ms | 5044 KB |
03.txt | TLE | 2104 ms | 6428 KB |
04.txt | TLE | 2104 ms | 6400 KB |
05.txt | TLE | 2107 ms | 2876 KB |
06.txt | TLE | 2104 ms | 10320 KB |
07.txt | TLE | 2107 ms | 1492 KB |
08.txt | AC | 3 ms | 540 KB |
sample-01.txt | AC | 4 ms | 536 KB |
sample-02.txt | AC | 5 ms | 620 KB |
sample-03.txt | AC | 5 ms | 608 KB |
sample-04.txt | AC | 7 ms | 612 KB |