Submission #905106


Source Code Expand

package AtCoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static String ST = "ST";

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder line = new StringBuilder(br.readLine());

		int stIndex;

		while (!((stIndex = line.indexOf(ST)) == -1)) {
			line.delete(stIndex, stIndex + 2);
		}

		System.out.println(line.length());

	}
}

Submission Info

Submission Time
Task A - STring
User ENGIN
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 536 Byte
Status RE
Exec Time 107 ms
Memory 8660 KB

Judge Result

Set Name Sample Subtask1 All
Score / Max Score 0 / 0 0 / 200 0 / 100
Status
RE × 3
RE × 9
RE × 13
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 RE 105 ms 8656 KB
corner1 RE 105 ms 8656 KB
corner2 RE 107 ms 8656 KB
example0 RE 105 ms 8656 KB
example1 RE 104 ms 8660 KB
example2 RE 106 ms 8656 KB
handmade0 RE 107 ms 8652 KB
handmade1 RE 104 ms 8656 KB
maxrand0 RE 106 ms 8656 KB
sub_corner0 RE 106 ms 8656 KB
sub_corner1 RE 104 ms 8656 KB
sub_corner2 RE 103 ms 8656 KB
sub_rand0 RE 107 ms 8656 KB