Submission #905111
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String x = scanner.next(); for (int i = 0; i < 500; i++) { x = x.replaceAll("ST", ""); } System.out.println(x.length()); } }
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | tohusoy |
Language | Java8 (OpenJDK 1.8.0) |
Score | 200 |
Code Size | 282 Byte |
Status | TLE |
Exec Time | 1060 ms |
Memory | 92280 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 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 | TLE | 1060 ms | 92280 KB |
corner1 | TLE | 1056 ms | 16436 KB |
corner2 | AC | 404 ms | 28472 KB |
example0 | AC | 142 ms | 10060 KB |
example1 | AC | 135 ms | 10704 KB |
example2 | AC | 143 ms | 10580 KB |
handmade0 | AC | 146 ms | 10708 KB |
handmade1 | AC | 135 ms | 10580 KB |
maxrand0 | AC | 334 ms | 27932 KB |
sub_corner0 | AC | 137 ms | 10192 KB |
sub_corner1 | AC | 149 ms | 9936 KB |
sub_corner2 | AC | 143 ms | 10064 KB |
sub_rand0 | AC | 138 ms | 10064 KB |