Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 8th, 2012
143
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
spread_it
(
n
)
d =
12.0
/
n
(
0
..
11
)
.
map
do
|
index
|
(
12.0
-
(
index
%
d
)
>
11.0
)
?
'1'
:
'0'
end
end
(
1
..
12
)
.
each
do
|
n
|
puts
"N=#{n} - #{spread_it n}"
end
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $200 in 15 minutes 1
JavaScript | 1 sec ago | 0.06 KB
FREE BTC GUIDE K
JavaScript | 6 sec ago | 0.06 KB
MAKE $900 INSTANTLY 3
JavaScript | 38 sec ago | 0.06 KB
✅ MAKE $12OO IN 10 MIN R
JavaScript | 44 sec ago | 0.06 KB
MAKE $900 INSTANTLY 6
JavaScript | 46 sec ago | 0.06 KB
Make 1500$ in 20 MIN [Method] M
JavaScript | 1 min ago | 0.06 KB
✅ MAKE $12OO IN 10 MIN 7
JavaScript | 1 min ago | 0.06 KB
FREE BTC GUIDE F
JavaScript | 2 min ago | 0.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!