Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 27th, 2018
84
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
y1,y2 = nil,nil
t = 2
begin
x = readline.to_i
y2,y1 = 0,x
while true
x = readline.to_i
y2 = t*y2+y1
y1 = t*y1+x
end
rescue EOFError
puts"#{y2} "
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 13 min ago | 0.39 KB
Custom PDF Viewer Block in Articulate Rise JS...
JavaScript | 24 min ago | 0.09 KB
Pastebin.ai - #1 pastebin alternative
PHP | 36 min ago | 0.84 KB
Receptor_RF_433MHz
MPASM | 1 hour ago | 10.04 KB
Transmisor_RF_433MHz
MPASM | 1 hour ago | 7.19 KB
[JS] YOUTUBE MP3 DOWNLOADER
JavaScript | 1 hour ago | 1.79 KB
fourth_task
C | 1 hour ago | 7.51 KB
sharelatex_overleaf_docker_compose
YAML | 2 hours ago | 6.20 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!