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 d7aa025 commit 80f864a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions POH6plus/test5.rb
@@ -1,9 +1 @@
f=Hash.new 0;s=c=""
gets.to_i.times{
f[[x=gets.chop,y=x.reverse].min]+=1
x==y&&c=x
}
f.sort.map{|k,v|
s+=k.*v/2
}
$><<s+c+s.reverse
f=Hash.new 0;s=c="";gets.to_i.times{f[[x=gets.chop,y=x.reverse].min]+=1;x==y&&c=x};f.sort.map{|k,v|s+=k.*v/2};$><<s+c+s.reverse

0 comments on commit 80f864a

Please sign in to comment.