euro denominations by BioFALSE

while t=gets do
_=50000
j=0
t=t.to_i
while t!=0 do
if t<_
_*=2
_/=j%3==0?5:4
j+=1
else
t-=_
print _,t!=0?'+':$/
end end end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page