Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
改行削除
Browse files Browse the repository at this point in the history
  • Loading branch information
neetsdkasu committed Sep 5, 2015
1 parent db3aa53 commit 40a01e8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions POH6plus/test5.rb
@@ -1,11 +1 @@
f,s=Hash.new(0),c=""
gets.to_i.times{
x=gets.chop
y=x.reverse
f[[x,y].min]+=1
x==y&&c=x
}
f.sort.map{|k,v|
(v/2).times{s+=k}
}
$><<s+c+s.reverse
f,s=Hash.new(0),c="";gets.to_i.times{x=gets.chop;y=x.reverse;f[[x,y].min]+=1;x==y&&c=x;};f.sort.map{|k,v|(v/2).times{s+=k};};$><<s+c+s.reverse

0 comments on commit 40a01e8

Please sign in to comment.