Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 23rd, 2017
66
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
def find_nb(m)
i = 1
xan = 1
while m != 0 do
m -= xan
i += 1
if m < 0 then
return -1
else
xan =i**3
end
end
return i-1
end
#puts find_nb(ARGV[0].to_i)
Add Comment
Please,
Sign In
to add comment
Public Pastes
batstats.js
JavaScript | 14 sec ago | 1.71 KB
verticalPermutationCipher.py
Python | 9 min ago | 4.35 KB
substitutionCipher.py
Python | 10 min ago | 5.16 KB
menu.py
Python | 11 min ago | 8.15 KB
batstats.py
Python | 12 min ago | 2.22 KB
batstats.ps1
PowerShell | 13 min ago | 1.54 KB
рекурсия
C++ | 14 min ago | 1.42 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 16 min ago | 0.39 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!