Submission #2560182
Source Code Expand
N = gets.to_i ss = [] ret_char = Hash.new ('a'..'z').each do |c| ret_char[c] = 50 end N.times do |i| str = gets.each_char.to_a ss[i] = Hash.new ('a'..'z').each do |c| ss[i][c] = str.count(c) if ret_char[c] > ss[i][c] ret_char[c] = ss[i][c] end end end ret = "" ('a'..'z').each do |c| ret += c * ret_char[c] end puts ret
Submission Info
Submission Time | |
---|---|
Task | C - Dubious Document |
User | asami_KA |
Language | Ruby (2.3.3) |
Score | 300 |
Code Size | 373 Byte |
Status | AC |
Exec Time | 13 ms |
Memory | 1916 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt |
All | 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 | AC | 7 ms | 1788 KB |
0_001.txt | AC | 7 ms | 1788 KB |
dec_half.txt | AC | 7 ms | 1788 KB |
hand.txt | AC | 11 ms | 1916 KB |
max.txt | AC | 13 ms | 1916 KB |
max_10.txt | AC | 13 ms | 1916 KB |
max_5.txt | AC | 13 ms | 1916 KB |
maxx.txt | AC | 13 ms | 1916 KB |
rnd.txt | AC | 11 ms | 1916 KB |
single.txt | AC | 7 ms | 1788 KB |