Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c,r,t,i,u
- fg = false
- price = {17.25,100,1100,12000,130000,1400000}
- rate = {.1,1,8,47,260,1400}
- amount = {1,0,0,0,0,0}
- function neverclick(route)
- c = 15
- r = .1
- t = 0
- i = 1
- while route[i] ~= nil and c < 1000000 do
- u = route[i]
- if u < 10 then
- t = t+price[u]/r
- c = c+price[u]
- amount[u] = amount[u]+1
- price[u] = price[u]*1.15
- end
- if u == 2 and fg then
- rate[3] = rate[3]+(2^math.floor(math.log(rate[3],2)))/100
- end
- if u == 10 then
- t = t+100/r
- c = c+100
- rate[1] = rate[1]*2
- end
- if u == 11 then
- t = t+500/r
- c = c+500
- rate[1] = rate[1]*2
- end
- if u == 12 then
- t = t+10000/r
- c = c+10000
- rate[1] = rate[1]*2
- end
- if u == 17 then
- t = t+1000/r
- c = c+1000
- rate[2] = rate[2]*2
- end
- if u == 18 then
- t = t+5000/r
- c = c+5000
- rate[2] = rate[2]*2
- end
- if u == 19 then
- t = t+50000/r
- c = c+50000
- rate[2] = rate[2]*2
- end
- if u == 20 then
- t = t+11000/r
- c = c+11000
- rate[3] = rate[3]*2
- end
- if u == 21 then
- t = t+55000/r
- c = c+55000
- rate[3] = rate[3]*2
- end
- if u == 26 then
- t = t+120000/r
- c = c+120000
- rate[4] = rate[4]*2
- end
- if u == 67 then
- t = t+55000/r
- c = c+55000
- fg = true
- rate[2] = rate[2]*2
- rate[3] = rate[3]*(1+amount[2]/100)
- end
- r = 0
- for k = 1,5 do
- r = r+amount[k]*rate[k]
- end
- i = i+1
- end
- print(c)
- return (t+(1000000-c)/r)/60
- end
- print(neverclick({1,1,1,1,2,2,2,2,2,10,1,1,1,2,1,2,17,2,2,3,2,3,2,3,2,3,1,11,1,1,1,1,1,3,2,18,2,2,2,2,2,3,1,20,3,3,3,3,3,4,2,3,4,1,2,4,3,21,3,3,3,3,67,2,2,2,2,2,2,2,19,2,2,2,3,2,3,2,3,2,4,1,3,2,4,1,3,2,4,26,4,4,4,4,4,4,4,3,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement