Submission #905389
Source Code Expand
def main(argv) s = STDIN.gets.chomp n = s.size while true do s.gsub!(/ST/, '') if s.size == n then break end n = s.size end STDOUT.puts s.size.to_s end if self.to_s == 'main' then main(ARGV) end
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | material |
Language | Ruby (2.3.3) |
Score | 200 |
Code Size | 264 Byte |
Status | TLE |
Exec Time | 1058 ms |
Memory | 73548 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 | 1058 ms | 73548 KB |
corner1 | AC | 12 ms | 2300 KB |
corner2 | AC | 40 ms | 3196 KB |
example0 | AC | 10 ms | 1788 KB |
example1 | AC | 10 ms | 1788 KB |
example2 | AC | 10 ms | 1788 KB |
handmade0 | AC | 10 ms | 1788 KB |
handmade1 | AC | 10 ms | 1788 KB |
maxrand0 | AC | 44 ms | 3324 KB |
sub_corner0 | AC | 10 ms | 1788 KB |
sub_corner1 | AC | 10 ms | 1788 KB |
sub_corner2 | AC | 10 ms | 1788 KB |
sub_rand0 | AC | 10 ms | 1916 KB |