Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 4th, 2016
92
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
a =
"0"
*
100
a = a.
split
(
""
)
.
map
(
&
:to_i
)
2
.
times
do
|
i
|
a.
each_with_index
do
|
n, index
|
a
[
index
]
=
if
(
index
+
1
)
%
(
i
+
1
)
==
0
1
-
n
else
n
end
end
end
puts
a.
inspect
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make 1500$ in 20 MIN [Method] U
JavaScript | 4 sec ago | 0.07 KB
Make $200 in 15 minutes F
JavaScript | 19 sec ago | 0.07 KB
Make 1500$ in 20 MIN [Method] V
JavaScript | 27 sec ago | 0.07 KB
MAKE $900 INSTANTLY N
JavaScript | 28 sec ago | 0.07 KB
Make $200 in 15 minutes 9
JavaScript | 36 sec ago | 0.07 KB
FREE BTC GUIDE 0
JavaScript | 48 sec ago | 0.07 KB
FREE BTC GUIDE T
JavaScript | 1 min ago | 0.07 KB
MAKE $900 INSTANTLY P
JavaScript | 1 min ago | 0.07 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!