#533257

Solution for 10031: Search II by kyontan

Source Code Status Test Cases
    Policy: public     Reviewed: 166    
00.48 sec    105084 KB    15 lines     236 bytes    2012-11-26 11:58
gets
S = gets.split.sort.uniq.map!{|i| i.to_i}

gets
T = gets.split.sort.map!{|i| i.to_i}

sa = Array.new(S.max, false)
ta = Array.new(T.max, false)

S.each {|i| sa[i] = true}
T.each {|i| ta[i] = true}

puts S.count{|i| sa[i] == ta[i]}


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

Status
Judge: 2/2 Ruby CPU: 00.48 sec Memory: 105084 KB Length: 236 B 2012-11-26 11:58 2012-11-26 11:58
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Accepted - -
Case #2: : Accepted - -
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags