fork(1) download
  1. # your code goes here
  2. def g(s)
  3. return s.chars.sort(&:casecmp).join
  4. end
  5.  
  6. print(g("fFfaghfbvjфывапролджэФЫВАПРОЛДЖЭXWaa"));
Success #stdin #stdout 0s 28688KB
stdin
Standard input is empty
stdout
aaabfFffghjvWXАВДЖЛОПРФЫЭавджлопрфыэ