Submission #2386600
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String x = sc.next(); for(int i = 0 ; i < 1000 ; i++) { x = x.replaceFirst("ST", ""); } System.out.println(x.length()); } }
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | kouta1612 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 200 |
Code Size | 276 Byte |
Status | TLE |
Exec Time | 1061 ms |
Memory | 274784 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 | 1061 ms | 162076 KB |
corner1 | TLE | 1057 ms | 91252 KB |
corner2 | MLE | 565 ms | 274784 KB |
example0 | AC | 109 ms | 22484 KB |
example1 | AC | 114 ms | 19796 KB |
example2 | AC | 107 ms | 19920 KB |
handmade0 | AC | 116 ms | 22100 KB |
handmade1 | AC | 119 ms | 22612 KB |
maxrand0 | MLE | 464 ms | 273900 KB |
sub_corner0 | AC | 117 ms | 23636 KB |
sub_corner1 | AC | 123 ms | 21204 KB |
sub_corner2 | AC | 117 ms | 23508 KB |
sub_rand0 | AC | 117 ms | 22228 KB |