Submission #1208140


Source Code Expand

Copy
a=gets.to_i.times.map{
h=Hash.new 0
gets.chomp.chars{|c|h[c]+=1}
h
}
puts ('a'..'z').map{|c|c*a.map{|h|h[c]}.min}*''

Submission Info

Submission Time
Task C - 怪文書 / Dubious Document
User leafmoon
Language Ruby (2.3.3)
Score 300
Code Size 121 Byte
Status
Exec Time 8 ms
Memory 1916 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt
All 300 / 300 0_000.txt, 0_001.txt, dec_half.txt, hand.txt, max.txt, max_10.txt, max_5.txt, maxx.txt, rnd.txt, single.txt
Case Name Status Exec Time Memory
0_000.txt 7 ms 1788 KB
0_001.txt 7 ms 1788 KB
dec_half.txt 7 ms 1788 KB
hand.txt 8 ms 1916 KB
max.txt 8 ms 1916 KB
max_10.txt 8 ms 1916 KB
max_5.txt 8 ms 1916 KB
maxx.txt 8 ms 1916 KB
rnd.txt 8 ms 1916 KB
single.txt 7 ms 1788 KB