visor_down
Forum Veteran
Magandang araw
Ito po ay sa mga naglalaro bg fishing hall
Na copy paste ko lang po ito galing sa fb
If ever bawa po paki Delete nalang admin
Ito po:
Ito ang formula ng FH para i-compute ang result sa LM.
Let A = the list which contains all the participation times of the last 35 bets
Let B = the sum of the first 30 from "A" plus the 35th item in "A"
Let C = the total number of coupons needed for the item
Ang formula is:
divide B by C and get the remainder then Add 10000001 to the remainder.
sa programming:
var result = (B % C) + 10000001;
Sa case ng iPhone X, makikita nyo ang numbers for "A" sa "New Arrivals" section ng LM. Di ba? Puro akin lahat? IGN: TAHOOO!
Ganito kasi, gumawa ako ng script para i-calculate kung anong oras ka dapat tataya para yung isang ticket mo manalo. Ang problema, maxadong malaki ang window of mistake kasi every split second counts. Nataon na mdjo bumagal ang pag-send ko ng data (yung pagpindot ng "OKAY" button, tumatawag yun ng request sa server ng FH).
Ang trick sana is i-bet ang buong 35 coupons at the same time para sayo lahat nung oras na gagamitin ng system nila para i-calculate. Pag ganun, madali nalang i-predict ang result. Multiply mo lang sa 31 then kunin mo ang remainder when divided by the total coupons needed, then add mo 10000001.
BTW, ang format ng numbers nila for "A" is HHMMssxxx, where HH is the 24-hour format of the hours, MM is the minutes, ss is the seconds and xxx for the millisecond. Sakin, ang time is 23:18:03.239, which will give you 231803239.
Eh pano ba i-reverse ang formula? Yun ang tricky na part kasi walang Mathematical function na kumukuha ng A with given B and C sa formula na "A % B = C".
Ang ginawa ko is gumawa ako ng script na nag-gegenerate ng possible times na dapat mo tayaan lahat ng last 35 coupons na natitira sa LM bago mag draw. Yun ang pinaka-importante. Dapat maubos lahat ang at least 35 na coupons na natitira sa draw sa isang tirahan lang.
Eto ang code sa javascript. (patulong kayo sa mga programmers. tyaka, sa mga programmers, pm nyo ko pag may suggestion kayo for optimization.)
//returns array of times in 24-hour format including the millisecond
function getBestTimeToBet(ticketNum, totalNeeded) {
var times = [],
radicalNum = 10000001,
_rem = ticketNum - radicalNum;
//loop from 0 to 239999999 since this is the max time of the day
for(var i = 0; i < 240000000; i++) {
if((i * 31) % totalNeeded == _rem) {
var str = i.toString(),
l = str.length;
if(l < 9)
str = '000000000'.substr(0, 9 - l) + str;
str = str.substr(0, 2) + ':' + str.substr(2, 2) + ':' + str.substr(4, 2) + '.' + str.substr(6);
//make sure the number is a valid time
if(/^(?:[0-1]?\d|2[0-3])
?:[0-5]?\d)
?:[0-5]+\d)/.test(str))
times.push(str);
//TODO:
// Optimize this function since it is looping 240000000 times.
// could maybe add a check for the minutes and seconds, i.e, MM <= 59 && ss <= 59
// but of course, you need to get the `MM` and `ss` part in the `i` iteration.
// take note that `i` is an int, not a string
}
}
return times.sort();
}
Ito po ay sa mga naglalaro bg fishing hall
Na copy paste ko lang po ito galing sa fb
If ever bawa po paki Delete nalang admin
Ito po:
Ito ang formula ng FH para i-compute ang result sa LM.
Let A = the list which contains all the participation times of the last 35 bets
Let B = the sum of the first 30 from "A" plus the 35th item in "A"
Let C = the total number of coupons needed for the item
Ang formula is:
divide B by C and get the remainder then Add 10000001 to the remainder.
sa programming:
var result = (B % C) + 10000001;
Sa case ng iPhone X, makikita nyo ang numbers for "A" sa "New Arrivals" section ng LM. Di ba? Puro akin lahat? IGN: TAHOOO!
Ganito kasi, gumawa ako ng script para i-calculate kung anong oras ka dapat tataya para yung isang ticket mo manalo. Ang problema, maxadong malaki ang window of mistake kasi every split second counts. Nataon na mdjo bumagal ang pag-send ko ng data (yung pagpindot ng "OKAY" button, tumatawag yun ng request sa server ng FH).
Ang trick sana is i-bet ang buong 35 coupons at the same time para sayo lahat nung oras na gagamitin ng system nila para i-calculate. Pag ganun, madali nalang i-predict ang result. Multiply mo lang sa 31 then kunin mo ang remainder when divided by the total coupons needed, then add mo 10000001.
BTW, ang format ng numbers nila for "A" is HHMMssxxx, where HH is the 24-hour format of the hours, MM is the minutes, ss is the seconds and xxx for the millisecond. Sakin, ang time is 23:18:03.239, which will give you 231803239.
Eh pano ba i-reverse ang formula? Yun ang tricky na part kasi walang Mathematical function na kumukuha ng A with given B and C sa formula na "A % B = C".
Ang ginawa ko is gumawa ako ng script na nag-gegenerate ng possible times na dapat mo tayaan lahat ng last 35 coupons na natitira sa LM bago mag draw. Yun ang pinaka-importante. Dapat maubos lahat ang at least 35 na coupons na natitira sa draw sa isang tirahan lang.
Eto ang code sa javascript. (patulong kayo sa mga programmers. tyaka, sa mga programmers, pm nyo ko pag may suggestion kayo for optimization.)
//returns array of times in 24-hour format including the millisecond
function getBestTimeToBet(ticketNum, totalNeeded) {
var times = [],
radicalNum = 10000001,
_rem = ticketNum - radicalNum;
//loop from 0 to 239999999 since this is the max time of the day
for(var i = 0; i < 240000000; i++) {
if((i * 31) % totalNeeded == _rem) {
var str = i.toString(),
l = str.length;
if(l < 9)
str = '000000000'.substr(0, 9 - l) + str;
str = str.substr(0, 2) + ':' + str.substr(2, 2) + ':' + str.substr(4, 2) + '.' + str.substr(6);
//make sure the number is a valid time
if(/^(?:[0-1]?\d|2[0-3])
?:[0-5]?\d)
?:[0-5]+\d)/.test(str))times.push(str);
//TODO:
// Optimize this function since it is looping 240000000 times.
// could maybe add a check for the minutes and seconds, i.e, MM <= 59 && ss <= 59
// but of course, you need to get the `MM` and `ss` part in the `i` iteration.
// take note that `i` is an int, not a string
}
}
return times.sort();
}
