Submission #1495849
Source Code Expand
s = gets.chomp tf = true sf = true ti = 0 si = 0 while tf || sf do if tf && s[ti]=='T' then ti+=1 else tf = false end if sf && s[-si-1]=='S' then si+=1 else sf = false end end puts [[ti,si].max*2, s.size-20000].max
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | sca1l |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 265 Byte |
Status | WA |
Exec Time | 10 ms |
Memory | 2172 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | 0 / 100 | ||||||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | example0, example1, example2 |
Subtask1 | example0, example1, example2, sub_corner0, sub_corner1, sub_corner2, sub_rand0, handmade0, handmade1 |
All | corner0, corner1, corner2, example0, example1, example2, handmade0, handmade1, maxrand0, sub_corner0, sub_corner1, sub_corner2, sub_rand0 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
corner0 | WA | 7 ms | 2172 KB |
corner1 | WA | 9 ms | 2172 KB |
corner2 | WA | 10 ms | 2172 KB |
example0 | AC | 7 ms | 1788 KB |
example1 | AC | 7 ms | 1788 KB |
example2 | AC | 7 ms | 1788 KB |
handmade0 | AC | 7 ms | 1788 KB |
handmade1 | AC | 7 ms | 1788 KB |
maxrand0 | WA | 7 ms | 2172 KB |
sub_corner0 | AC | 7 ms | 1788 KB |
sub_corner1 | WA | 7 ms | 1788 KB |
sub_corner2 | WA | 7 ms | 1788 KB |
sub_rand0 | WA | 7 ms | 1788 KB |