Submission #904457
Source Code Expand
X = raw_input() t = 0 a = 0 for x in X: if x=="T": t -= 1 else: t += 1 if t<0: a += 1 print a
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | kusano |
Language | Python (2.7.6) |
Score | 0 |
Code Size | 141 Byte |
Status | WA |
Exec Time | 54 ms |
Memory | 2924 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 | AC | 40 ms | 2924 KB |
corner1 | WA | 54 ms | 2924 KB |
corner2 | WA | 54 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 | WA | 16 ms | 2568 KB |
maxrand0 | WA | 51 ms | 2924 KB |
sub_corner0 | AC | 16 ms | 2568 KB |
sub_corner1 | WA | 16 ms | 2568 KB |
sub_corner2 | WA | 15 ms | 2568 KB |
sub_rand0 | WA | 16 ms | 2568 KB |