Submission #2386630
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 < 100 ; 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 | 275 Byte |
Status | WA |
Exec Time | 307 ms |
Memory | 58816 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 | WA | 307 ms | 55352 KB |
corner1 | WA | 288 ms | 58816 KB |
corner2 | WA | 235 ms | 47292 KB |
example0 | AC | 92 ms | 23124 KB |
example1 | AC | 91 ms | 20052 KB |
example2 | AC | 92 ms | 20564 KB |
handmade0 | AC | 121 ms | 18772 KB |
handmade1 | AC | 92 ms | 19412 KB |
maxrand0 | WA | 208 ms | 58184 KB |
sub_corner0 | AC | 94 ms | 19796 KB |
sub_corner1 | AC | 105 ms | 21844 KB |
sub_corner2 | AC | 96 ms | 21588 KB |
sub_rand0 | AC | 105 ms | 19028 KB |