Submission #1161820
Source Code Expand
using System; class A{ static void Main() {string s=""; string a=Console.ReadLine(); s=a; for(int i=0;i<a.Length-1;i++) { string z=a.Substring(i,1); string x=a.Substring(i+1,1); if(z=="S"&&x=="T"){s=a.Substring(0,i)+a.Substring(i+2,a.Length-i-2);} }Console.WriteLine(s.Length); } }
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | rayhotate |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 300 Byte |
Status | WA |
Exec Time | 1056 ms |
Memory | 29036 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 | 139 ms | 29012 KB |
corner1 | WA | 138 ms | 29036 KB |
corner2 | TLE | 1056 ms | 28812 KB |
example0 | AC | 19 ms | 9044 KB |
example1 | WA | 19 ms | 9044 KB |
example2 | WA | 20 ms | 9044 KB |
handmade0 | AC | 20 ms | 9044 KB |
handmade1 | AC | 19 ms | 9044 KB |
maxrand0 | TLE | 1056 ms | 27064 KB |
sub_corner0 | WA | 20 ms | 11092 KB |
sub_corner1 | WA | 19 ms | 9044 KB |
sub_corner2 | WA | 20 ms | 11092 KB |
sub_rand0 | WA | 20 ms | 11092 KB |