#776931

Solution for 0506: String by pck

Source Code Status Test Cases
    Policy: public     Reviewed: 88    
00.09 sec    6192 KB    6 lines     83 bytes    2013-09-25 14:28
while(n=gets.to_i)!=0
s=gets
n.times{s.gsub!(/(.)\1*/){"#{$&.size}#$1"}}
puts s
end

Compile Error Logs:
You are not authorized to see the message.

Status
Judge: 1/1 Ruby CPU: 00.09 sec Memory: 6192 KB Length: 83 B 2013-09-25 14:28 2013-09-25 14:28
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Accepted 00.09 sec 6192 KB
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags