Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (186 Bytes)
Bug #7750
» 0062.rb
konishi_takurou (瀧澤 悠介)
, 01/28/2013 11:45 PM
ary
=
[]
[
"0"
,
"1"
,
"2"
,
"3"
,
"3"
,
"4"
,
"5"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
].
map
{
|
e
|
e
.
to_i
}.
permutation
(
12
).
each
do
|
e
|
ary
<<
Math
.
cbrt
(
e
.
join
.
to_i
)
end
p
ary
.
select
{
|
e
|
e
==
e
.
to_i
}
(1-1/1)
Loading...