Submission #911920
Source Code Expand
#AGC005A s=raw_input() res=0 for c in s: if c=='S': res+=1 elif c=='T' and res>0: res-=1 print res*2
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | pluto77 |
Language | Python (2.7.6) |
Score | 300 |
Code Size | 118 Byte |
Status | AC |
Exec Time | 42 ms |
Memory | 2924 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | 100 / 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 | AC | 39 ms | 2924 KB |
corner1 | AC | 35 ms | 2924 KB |
corner2 | AC | 40 ms | 2924 KB |
example0 | AC | 16 ms | 2568 KB |
example1 | AC | 16 ms | 2568 KB |
example2 | AC | 16 ms | 2568 KB |
handmade0 | AC | 16 ms | 2568 KB |
handmade1 | AC | 16 ms | 2568 KB |
maxrand0 | AC | 42 ms | 2924 KB |
sub_corner0 | AC | 16 ms | 2568 KB |
sub_corner1 | AC | 16 ms | 2568 KB |
sub_corner2 | AC | 16 ms | 2568 KB |
sub_rand0 | AC | 16 ms | 2568 KB |