Submission #905750


Source Code Expand

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

Submission Info

Submission Time
Task A - STring
User TAB
Language Python3 (3.4.3)
Score 200
Code Size 159 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 27 ms 3496 KB
corner2 34 ms 3500 KB
example0 23 ms 3064 KB
example1 23 ms 3064 KB
example2 23 ms 3064 KB
handmade0 22 ms 3064 KB
handmade1 22 ms 3064 KB
maxrand0 37 ms 3500 KB
sub_corner0 22 ms 3064 KB
sub_corner1 22 ms 3064 KB
sub_corner2 22 ms 3064 KB
sub_rand0 22 ms 3064 KB