Submission #1228126
Source Code Expand
import java.util.Scanner; public class Main { static Scanner s = new Scanner(System.in); public static void main(String[] args) { String r=s.next(),buf=r; int count=0; while(r!=(buf=r.replaceFirst("ST", ""))) { r=buf; count++; } System.out.println(count); System.out.println(r.length()); } }
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | fal_rnd |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 331 Byte |
Status | WA |
Exec Time | 1062 ms |
Memory | 344228 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 | TLE | 1061 ms | 225992 KB |
corner1 | WA | 469 ms | 87408 KB |
corner2 | TLE | 1058 ms | 343772 KB |
example0 | WA | 92 ms | 19668 KB |
example1 | WA | 90 ms | 23764 KB |
example2 | WA | 91 ms | 21716 KB |
handmade0 | WA | 91 ms | 22608 KB |
handmade1 | WA | 92 ms | 21460 KB |
maxrand0 | TLE | 1062 ms | 344228 KB |
sub_corner0 | WA | 95 ms | 20692 KB |
sub_corner1 | WA | 94 ms | 21460 KB |
sub_corner2 | WA | 106 ms | 21844 KB |
sub_rand0 | WA | 103 ms | 19796 KB |