Submission #905843


Source Code Expand

Copy
X = input()
N = 10**10000
for i in range(N):
	if "ST" in X:
		X = X.replace("ST","")
	else:
		print(len(X))
		break
else:
	print(len(X))

Submission Info

Submission Time
Task A - STring
User TAB
Language Python3 (3.4.3)
Score 200
Code Size 147 Byte
Status

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example0, example1, example2
Subtask1 200 / 200 example0, example1, example2, sub_corner0, sub_corner1, sub_corner2, sub_rand0, handmade0, handmade1
All 0 / 100 corner0, corner1, corner2, example0, example1, example2, handmade0, handmade1, maxrand0, sub_corner0, sub_corner1, sub_corner2, sub_rand0
Case Name Status Exec Time Memory
corner0
corner1 26 ms 3500 KB
corner2 35 ms 3496 KB
example0 23 ms 3064 KB
example1 23 ms 3064 KB
example2 22 ms 3064 KB
handmade0 22 ms 3064 KB
handmade1 23 ms 3064 KB
maxrand0 37 ms 3500 KB
sub_corner0 23 ms 3064 KB
sub_corner1 23 ms 3064 KB
sub_corner2 23 ms 3064 KB
sub_rand0 23 ms 3064 KB