Submission #2386680
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 < 25 ; 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 | 0 |
Code Size | 274 Byte |
Status | WA |
Exec Time | 227 ms |
Memory | 43920 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | 227 ms | 43920 KB |
corner1 | WA | 201 ms | 43700 KB |
corner2 | WA | 203 ms | 43540 KB |
example0 | AC | 90 ms | 21844 KB |
example1 | AC | 91 ms | 20948 KB |
example2 | AC | 90 ms | 19284 KB |
handmade0 | AC | 90 ms | 18640 KB |
handmade1 | AC | 90 ms | 19924 KB |
maxrand0 | WA | 179 ms | 42372 KB |
sub_corner0 | WA | 92 ms | 20816 KB |
sub_corner1 | AC | 93 ms | 19540 KB |
sub_corner2 | WA | 90 ms | 21844 KB |
sub_rand0 | WA | 92 ms | 19796 KB |