index
:
github/perlweeklychallenge-club.git
master
Unnamed repository; edit this file 'description' to name the repository.
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
challenge-061
/
shawak
/
ruby
/
ch-1.rb
blob: cdd30062611e61fc97a773446ff40cbf5b2ffcd0 (
plain
)
1
p
gets
[
1
..-
3
].
split
(
?,
)
.
map
{
|
x
|
x
.
chomp
.
to_i
}
.
each_cons
(
2
)
.
map
{
|
a
,
b
|
a
*
b
}
.
sort
[-
1
]