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-073
/
shawak
/
ruby
/
ch-2.rb
blob: 866199028477cb7a55580d00ec953c9e403c65e5 (
plain
)
1
2
a
=
gets
.
split
.
map
&
:to_i
p
(
0
...
a
.
size
)
.
map
{
|
x
|
a
[
0
..
x
].
select
{
|
y
|
y
<
a
[
x
]
}
.
sort
.
first
||
0
}