tx · 4eaN4opALriZTmWhQup8C6HqWL7crPbfr84Lp1bNTHu9 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves 2024.06.10 00:41 [3143750] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{ "type": 13, "id": "4eaN4opALriZTmWhQup8C6HqWL7crPbfr84Lp1bNTHu9", "fee": 1000000, "feeAssetId": null, "timestamp": 1717969277517, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "61KS9gQoSvyZrG2A2Qm71aKkgcgkx9PY1pyhA7BNJZuzrYypeBsvTCGBqfcdtuwtPfuaHEnqoCfd38sfJ9in9s6i" ], "script": "base64:BwIHCAISAwoBEQgAD3dlaWdodHNfbGF5ZXJfMQkAzAgCCQDMCAIAkdUDCQDMCAIAqdUDBQNuaWwJAMwIAgkAzAgCAMvDAgkAzAgCANHDAgUDbmlsBQNuaWwADmJpYXNlc19sYXllcl8xCQDMCAIAz7X+////////AQkAzAgCALWP/P///////wEFA25pbAAPd2VpZ2h0c19sYXllcl8yCQDMCAIJAMwIAgDgigUJAMwIAgCOw/r///////8BBQNuaWwFA25pbAAOYmlhc2VzX2xheWVyXzIJAMwIAgCb1v3///////8BBQNuaWwBEGxpbmVhcl9mb3J3YXJkXzEDBWlucHV0B3dlaWdodHMGYmlhc2VzBA13ZWlnaHRlZF9zdW0xCQBkAgkAaQIJAGQCCQBoAgkAkQMCBQVpbnB1dAAACQCRAwIJAJEDAgUHd2VpZ2h0cwAAAAAJAGgCCQCRAwIFBWlucHV0AAEJAJEDAgkAkQMCBQd3ZWlnaHRzAAAAAQCQTgkAkQMCBQZiaWFzZXMAAAQNd2VpZ2h0ZWRfc3VtMgkAZAIJAGkCCQBkAgkAaAIJAJEDAgUFaW5wdXQAAAkAkQMCCQCRAwIFB3dlaWdodHMAAQAACQBoAgkAkQMCBQVpbnB1dAABCQCRAwIJAJEDAgUHd2VpZ2h0cwABAAEAkE4JAJEDAgUGYmlhc2VzAAEJAMwIAgUNd2VpZ2h0ZWRfc3VtMQkAzAgCBQ13ZWlnaHRlZF9zdW0yBQNuaWwBEGxpbmVhcl9mb3J3YXJkXzIDBWlucHV0B3dlaWdodHMGYmlhc2VzBA13ZWlnaHRlZF9zdW0xCQBkAgkAaQIJAGQCCQBoAgkAkQMCBQVpbnB1dAAACQCRAwIJAJEDAgUHd2VpZ2h0cwAAAAAJAGgCCQCRAwIFBWlucHV0AAEJAJEDAgkAkQMCBQd3ZWlnaHRzAAAAAQCQTgkAkQMCBQZiaWFzZXMAAAkAzAgCBQ13ZWlnaHRlZF9zdW0xBQNuaWwBB3NpZ21vaWQBBWlucHV0AwkAZgIAgI/7////////AQUFaW5wdXQAAAMJAGYCAKCr/P///////wEFBWlucHV0CQBrAwkAZAIFBWlucHV0AIDxBAB9AJBOAwkAZgIAwMf9////////AQUFaW5wdXQJAGsDCQBkAgUFaW5wdXQA4NQDAGQAkE4DCQBmAgDg4/7///////8BBQVpbnB1dAkAawMJAGQCBQVpbnB1dADAuAIASwCQTgMJAGYCAAAFBWlucHV0CQBrAwkAZAIFBWlucHV0AKCcAQAyAJBOAwkAZgIAoJwBBQVpbnB1dAkAZAIJAGsDBQVpbnB1dAAyAJBOAIgnAwkAZgIAwLgCBQVpbnB1dAkAZAIJAGsDCQBlAgUFaW5wdXQAoJwBAEsAkE4AzDoDCQBmAgDg1AMFBWlucHV0CQBkAgkAawMJAGUCBQVpbnB1dADAuAIAZACQTgCuRAMJAGYCAIDxBAUFaW5wdXQJAGQCCQBrAwkAZQIFBWlucHV0AODUAwB9AJBOAJ9JAJBOARJzaWdtb2lkX2FjdGl2YXRpb24CBmlucHV0cwtudW1fb3V0cHV0cwMJAAACBQtudW1fb3V0cHV0cwABCQDMCAIJAQdzaWdtb2lkAQkAkQMCBQZpbnB1dHMAAAUDbmlsCQDMCAIJAQdzaWdtb2lkAQkAkQMCBQZpbnB1dHMAAAkAzAgCCQEHc2lnbW9pZAEJAJEDAgUGaW5wdXRzAAEFA25pbAEBaQEHcHJlZGljdAEGaW5wdXRzBAl4MV9zY2FsZWQJAGgCCQCRAwIFBmlucHV0cwAAAJBOBAl4Ml9zY2FsZWQJAGgCCQCRAwIFBmlucHV0cwABAJBOBA1zY2FsZWRfaW5wdXRzCQDMCAIFCXgxX3NjYWxlZAkAzAgCBQl4Ml9zY2FsZWQFA25pbAQCejEJARBsaW5lYXJfZm9yd2FyZF8xAwUNc2NhbGVkX2lucHV0cwUPd2VpZ2h0c19sYXllcl8xBQ5iaWFzZXNfbGF5ZXJfMQQCYTEJARJzaWdtb2lkX2FjdGl2YXRpb24CBQJ6MQACBAJ6MgkBEGxpbmVhcl9mb3J3YXJkXzIDBQJhMQUPd2VpZ2h0c19sYXllcl8yBQ5iaWFzZXNfbGF5ZXJfMgQCYTIJARJzaWdtb2lkX2FjdGl2YXRpb24CBQJ6MgABBAdyZXN1bHQwCQCRAwIFAmEyAAAEDWRlYnVnX291dHB1dHMFA25pbAkAzggCCQDMCAIJAQxJbnRlZ2VyRW50cnkCAhFtb3ZlX3ByZWRpY3Rpb25fMAUHcmVzdWx0MAUDbmlsBQ1kZWJ1Z19vdXRwdXRzALWPX8w=", "height": 3143750, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ypJZ2MuKN8X3n1rSmNHSwMp9hb3Srt4aCAFARzmnC66 Next: 8Z98WBSbg5ME521Bx7gZ74ugVt4yCFseUCkB5daWEzqE Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = [[ | |
4 | + | let a = [[60049, 60073], [41419, 41425]] | |
5 | 5 | ||
6 | - | let b = [ | |
6 | + | let b = [-25905, -63563] | |
7 | 7 | ||
8 | - | let c = [[ | |
8 | + | let c = [[83296, -89714]] | |
9 | 9 | ||
10 | - | let d = [- | |
10 | + | let d = [-38117] | |
11 | 11 | ||
12 | 12 | func e (f,g,h) = { | |
13 | - | let i = (((((((((((((((((((((((((f[0] * g[0][0]) + (f[1] * g[0][1])) + (f[2] * g[0][2])) + (f[3] * g[0][3])) + (f[4] * g[0][4])) + (f[5] * g[0][5])) + (f[6] * g[0][6])) + (f[7] * g[0][7])) + (f[8] * g[0][8])) + (f[9] * g[0][9])) + (f[10] * g[0][10])) + (f[11] * g[0][11])) + (f[12] * g[0][12])) + (f[13] * g[0][13])) + (f[14] * g[0][14])) + (f[15] * g[0][15])) + (f[16] * g[0][16])) + (f[17] * g[0][17])) + (f[18] * g[0][18])) + (f[19] * g[0][19])) + (f[20] * g[0][20])) + (f[21] * g[0][21])) + (f[22] * g[0][22])) / 10000) + h[0]) | |
14 | - | let j = (((((((((((((((((((((((((f[0] * g[1][0]) + (f[1] * g[1][1])) + (f[2] * g[1][2])) + (f[3] * g[1][3])) + (f[4] * g[1][4])) + (f[5] * g[1][5])) + (f[6] * g[1][6])) + (f[7] * g[1][7])) + (f[8] * g[1][8])) + (f[9] * g[1][9])) + (f[10] * g[1][10])) + (f[11] * g[1][11])) + (f[12] * g[1][12])) + (f[13] * g[1][13])) + (f[14] * g[1][14])) + (f[15] * g[1][15])) + (f[16] * g[1][16])) + (f[17] * g[1][17])) + (f[18] * g[1][18])) + (f[19] * g[1][19])) + (f[20] * g[1][20])) + (f[21] * g[1][21])) + (f[22] * g[1][22])) / 10000) + h[1]) | |
15 | - | let k = (((((((((((((((((((((((((f[0] * g[2][0]) + (f[1] * g[2][1])) + (f[2] * g[2][2])) + (f[3] * g[2][3])) + (f[4] * g[2][4])) + (f[5] * g[2][5])) + (f[6] * g[2][6])) + (f[7] * g[2][7])) + (f[8] * g[2][8])) + (f[9] * g[2][9])) + (f[10] * g[2][10])) + (f[11] * g[2][11])) + (f[12] * g[2][12])) + (f[13] * g[2][13])) + (f[14] * g[2][14])) + (f[15] * g[2][15])) + (f[16] * g[2][16])) + (f[17] * g[2][17])) + (f[18] * g[2][18])) + (f[19] * g[2][19])) + (f[20] * g[2][20])) + (f[21] * g[2][21])) + (f[22] * g[2][22])) / 10000) + h[2]) | |
16 | - | let l = (((((((((((((((((((((((((f[0] * g[3][0]) + (f[1] * g[3][1])) + (f[2] * g[3][2])) + (f[3] * g[3][3])) + (f[4] * g[3][4])) + (f[5] * g[3][5])) + (f[6] * g[3][6])) + (f[7] * g[3][7])) + (f[8] * g[3][8])) + (f[9] * g[3][9])) + (f[10] * g[3][10])) + (f[11] * g[3][11])) + (f[12] * g[3][12])) + (f[13] * g[3][13])) + (f[14] * g[3][14])) + (f[15] * g[3][15])) + (f[16] * g[3][16])) + (f[17] * g[3][17])) + (f[18] * g[3][18])) + (f[19] * g[3][19])) + (f[20] * g[3][20])) + (f[21] * g[3][21])) + (f[22] * g[3][22])) / 10000) + h[3]) | |
17 | - | let m = (((((((((((((((((((((((((f[0] * g[4][0]) + (f[1] * g[4][1])) + (f[2] * g[4][2])) + (f[3] * g[4][3])) + (f[4] * g[4][4])) + (f[5] * g[4][5])) + (f[6] * g[4][6])) + (f[7] * g[4][7])) + (f[8] * g[4][8])) + (f[9] * g[4][9])) + (f[10] * g[4][10])) + (f[11] * g[4][11])) + (f[12] * g[4][12])) + (f[13] * g[4][13])) + (f[14] * g[4][14])) + (f[15] * g[4][15])) + (f[16] * g[4][16])) + (f[17] * g[4][17])) + (f[18] * g[4][18])) + (f[19] * g[4][19])) + (f[20] * g[4][20])) + (f[21] * g[4][21])) + (f[22] * g[4][22])) / 10000) + h[4]) | |
18 | - | let n = (((((((((((((((((((((((((f[0] * g[5][0]) + (f[1] * g[5][1])) + (f[2] * g[5][2])) + (f[3] * g[5][3])) + (f[4] * g[5][4])) + (f[5] * g[5][5])) + (f[6] * g[5][6])) + (f[7] * g[5][7])) + (f[8] * g[5][8])) + (f[9] * g[5][9])) + (f[10] * g[5][10])) + (f[11] * g[5][11])) + (f[12] * g[5][12])) + (f[13] * g[5][13])) + (f[14] * g[5][14])) + (f[15] * g[5][15])) + (f[16] * g[5][16])) + (f[17] * g[5][17])) + (f[18] * g[5][18])) + (f[19] * g[5][19])) + (f[20] * g[5][20])) + (f[21] * g[5][21])) + (f[22] * g[5][22])) / 10000) + h[5]) | |
19 | - | let o = (((((((((((((((((((((((((f[0] * g[6][0]) + (f[1] * g[6][1])) + (f[2] * g[6][2])) + (f[3] * g[6][3])) + (f[4] * g[6][4])) + (f[5] * g[6][5])) + (f[6] * g[6][6])) + (f[7] * g[6][7])) + (f[8] * g[6][8])) + (f[9] * g[6][9])) + (f[10] * g[6][10])) + (f[11] * g[6][11])) + (f[12] * g[6][12])) + (f[13] * g[6][13])) + (f[14] * g[6][14])) + (f[15] * g[6][15])) + (f[16] * g[6][16])) + (f[17] * g[6][17])) + (f[18] * g[6][18])) + (f[19] * g[6][19])) + (f[20] * g[6][20])) + (f[21] * g[6][21])) + (f[22] * g[6][22])) / 10000) + h[6]) | |
20 | - | let p = (((((((((((((((((((((((((f[0] * g[7][0]) + (f[1] * g[7][1])) + (f[2] * g[7][2])) + (f[3] * g[7][3])) + (f[4] * g[7][4])) + (f[5] * g[7][5])) + (f[6] * g[7][6])) + (f[7] * g[7][7])) + (f[8] * g[7][8])) + (f[9] * g[7][9])) + (f[10] * g[7][10])) + (f[11] * g[7][11])) + (f[12] * g[7][12])) + (f[13] * g[7][13])) + (f[14] * g[7][14])) + (f[15] * g[7][15])) + (f[16] * g[7][16])) + (f[17] * g[7][17])) + (f[18] * g[7][18])) + (f[19] * g[7][19])) + (f[20] * g[7][20])) + (f[21] * g[7][21])) + (f[22] * g[7][22])) / 10000) + h[7]) | |
21 | - | let q = (((((((((((((((((((((((((f[0] * g[8][0]) + (f[1] * g[8][1])) + (f[2] * g[8][2])) + (f[3] * g[8][3])) + (f[4] * g[8][4])) + (f[5] * g[8][5])) + (f[6] * g[8][6])) + (f[7] * g[8][7])) + (f[8] * g[8][8])) + (f[9] * g[8][9])) + (f[10] * g[8][10])) + (f[11] * g[8][11])) + (f[12] * g[8][12])) + (f[13] * g[8][13])) + (f[14] * g[8][14])) + (f[15] * g[8][15])) + (f[16] * g[8][16])) + (f[17] * g[8][17])) + (f[18] * g[8][18])) + (f[19] * g[8][19])) + (f[20] * g[8][20])) + (f[21] * g[8][21])) + (f[22] * g[8][22])) / 10000) + h[8]) | |
22 | - | let r = (((((((((((((((((((((((((f[0] * g[9][0]) + (f[1] * g[9][1])) + (f[2] * g[9][2])) + (f[3] * g[9][3])) + (f[4] * g[9][4])) + (f[5] * g[9][5])) + (f[6] * g[9][6])) + (f[7] * g[9][7])) + (f[8] * g[9][8])) + (f[9] * g[9][9])) + (f[10] * g[9][10])) + (f[11] * g[9][11])) + (f[12] * g[9][12])) + (f[13] * g[9][13])) + (f[14] * g[9][14])) + (f[15] * g[9][15])) + (f[16] * g[9][16])) + (f[17] * g[9][17])) + (f[18] * g[9][18])) + (f[19] * g[9][19])) + (f[20] * g[9][20])) + (f[21] * g[9][21])) + (f[22] * g[9][22])) / 10000) + h[9]) | |
23 | - | let s = (((((((((((((((((((((((((f[0] * g[10][0]) + (f[1] * g[10][1])) + (f[2] * g[10][2])) + (f[3] * g[10][3])) + (f[4] * g[10][4])) + (f[5] * g[10][5])) + (f[6] * g[10][6])) + (f[7] * g[10][7])) + (f[8] * g[10][8])) + (f[9] * g[10][9])) + (f[10] * g[10][10])) + (f[11] * g[10][11])) + (f[12] * g[10][12])) + (f[13] * g[10][13])) + (f[14] * g[10][14])) + (f[15] * g[10][15])) + (f[16] * g[10][16])) + (f[17] * g[10][17])) + (f[18] * g[10][18])) + (f[19] * g[10][19])) + (f[20] * g[10][20])) + (f[21] * g[10][21])) + (f[22] * g[10][22])) / 10000) + h[10]) | |
24 | - | let t = (((((((((((((((((((((((((f[0] * g[11][0]) + (f[1] * g[11][1])) + (f[2] * g[11][2])) + (f[3] * g[11][3])) + (f[4] * g[11][4])) + (f[5] * g[11][5])) + (f[6] * g[11][6])) + (f[7] * g[11][7])) + (f[8] * g[11][8])) + (f[9] * g[11][9])) + (f[10] * g[11][10])) + (f[11] * g[11][11])) + (f[12] * g[11][12])) + (f[13] * g[11][13])) + (f[14] * g[11][14])) + (f[15] * g[11][15])) + (f[16] * g[11][16])) + (f[17] * g[11][17])) + (f[18] * g[11][18])) + (f[19] * g[11][19])) + (f[20] * g[11][20])) + (f[21] * g[11][21])) + (f[22] * g[11][22])) / 10000) + h[11]) | |
25 | - | let u = (((((((((((((((((((((((((f[0] * g[12][0]) + (f[1] * g[12][1])) + (f[2] * g[12][2])) + (f[3] * g[12][3])) + (f[4] * g[12][4])) + (f[5] * g[12][5])) + (f[6] * g[12][6])) + (f[7] * g[12][7])) + (f[8] * g[12][8])) + (f[9] * g[12][9])) + (f[10] * g[12][10])) + (f[11] * g[12][11])) + (f[12] * g[12][12])) + (f[13] * g[12][13])) + (f[14] * g[12][14])) + (f[15] * g[12][15])) + (f[16] * g[12][16])) + (f[17] * g[12][17])) + (f[18] * g[12][18])) + (f[19] * g[12][19])) + (f[20] * g[12][20])) + (f[21] * g[12][21])) + (f[22] * g[12][22])) / 10000) + h[12]) | |
26 | - | let v = (((((((((((((((((((((((((f[0] * g[13][0]) + (f[1] * g[13][1])) + (f[2] * g[13][2])) + (f[3] * g[13][3])) + (f[4] * g[13][4])) + (f[5] * g[13][5])) + (f[6] * g[13][6])) + (f[7] * g[13][7])) + (f[8] * g[13][8])) + (f[9] * g[13][9])) + (f[10] * g[13][10])) + (f[11] * g[13][11])) + (f[12] * g[13][12])) + (f[13] * g[13][13])) + (f[14] * g[13][14])) + (f[15] * g[13][15])) + (f[16] * g[13][16])) + (f[17] * g[13][17])) + (f[18] * g[13][18])) + (f[19] * g[13][19])) + (f[20] * g[13][20])) + (f[21] * g[13][21])) + (f[22] * g[13][22])) / 10000) + h[13]) | |
27 | - | let w = (((((((((((((((((((((((((f[0] * g[14][0]) + (f[1] * g[14][1])) + (f[2] * g[14][2])) + (f[3] * g[14][3])) + (f[4] * g[14][4])) + (f[5] * g[14][5])) + (f[6] * g[14][6])) + (f[7] * g[14][7])) + (f[8] * g[14][8])) + (f[9] * g[14][9])) + (f[10] * g[14][10])) + (f[11] * g[14][11])) + (f[12] * g[14][12])) + (f[13] * g[14][13])) + (f[14] * g[14][14])) + (f[15] * g[14][15])) + (f[16] * g[14][16])) + (f[17] * g[14][17])) + (f[18] * g[14][18])) + (f[19] * g[14][19])) + (f[20] * g[14][20])) + (f[21] * g[14][21])) + (f[22] * g[14][22])) / 10000) + h[14]) | |
28 | - | [i, j, k, l, m, n, o, p, q, r, s, t, u, v, w] | |
29 | - | } | |
30 | - | ||
31 | - | ||
32 | - | func x (f,g,h) = { | |
33 | - | let i = (((((((((((((((((f[0] * g[0][0]) + (f[1] * g[0][1])) + (f[2] * g[0][2])) + (f[3] * g[0][3])) + (f[4] * g[0][4])) + (f[5] * g[0][5])) + (f[6] * g[0][6])) + (f[7] * g[0][7])) + (f[8] * g[0][8])) + (f[9] * g[0][9])) + (f[10] * g[0][10])) + (f[11] * g[0][11])) + (f[12] * g[0][12])) + (f[13] * g[0][13])) + (f[14] * g[0][14])) / 10000) + h[0]) | |
34 | - | let j = (((((((((((((((((f[0] * g[1][0]) + (f[1] * g[1][1])) + (f[2] * g[1][2])) + (f[3] * g[1][3])) + (f[4] * g[1][4])) + (f[5] * g[1][5])) + (f[6] * g[1][6])) + (f[7] * g[1][7])) + (f[8] * g[1][8])) + (f[9] * g[1][9])) + (f[10] * g[1][10])) + (f[11] * g[1][11])) + (f[12] * g[1][12])) + (f[13] * g[1][13])) + (f[14] * g[1][14])) / 10000) + h[1]) | |
13 | + | let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0]) | |
14 | + | let j = ((((f[0] * g[1][0]) + (f[1] * g[1][1])) / 10000) + h[1]) | |
35 | 15 | [i, j] | |
36 | 16 | } | |
37 | 17 | ||
38 | 18 | ||
39 | - | func y (f) = if ((0 > f)) | |
40 | - | then 0 | |
41 | - | else f | |
19 | + | func k (f,g,h) = { | |
20 | + | let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0]) | |
21 | + | [i] | |
22 | + | } | |
42 | 23 | ||
43 | 24 | ||
44 | - | func z (A,B) = if ((B == 1)) | |
45 | - | then [y(A[0])] | |
46 | - | else [y(A[0]), y(A[1]), y(A[2]), y(A[3]), y(A[4]), y(A[5]), y(A[6]), y(A[7]), y(A[8]), y(A[9]), y(A[10]), y(A[11]), y(A[12]), y(A[13]), y(A[14])] | |
25 | + | func l (f) = if ((-80000 > f)) | |
26 | + | then 0 | |
27 | + | else if ((-60000 > f)) | |
28 | + | then fraction((f + 80000), 125, 10000) | |
29 | + | else if ((-40000 > f)) | |
30 | + | then fraction((f + 60000), 100, 10000) | |
31 | + | else if ((-20000 > f)) | |
32 | + | then fraction((f + 40000), 75, 10000) | |
33 | + | else if ((0 > f)) | |
34 | + | then fraction((f + 20000), 50, 10000) | |
35 | + | else if ((20000 > f)) | |
36 | + | then (fraction(f, 50, 10000) + 5000) | |
37 | + | else if ((40000 > f)) | |
38 | + | then (fraction((f - 20000), 75, 10000) + 7500) | |
39 | + | else if ((60000 > f)) | |
40 | + | then (fraction((f - 40000), 100, 10000) + 8750) | |
41 | + | else if ((80000 > f)) | |
42 | + | then (fraction((f - 60000), 125, 10000) + 9375) | |
43 | + | else 10000 | |
47 | 44 | ||
48 | 45 | ||
49 | - | @Callable(C) | |
50 | - | func predict (A) = { | |
51 | - | let D = (A[0] * 10000) | |
52 | - | let E = (A[1] * 10000) | |
53 | - | let F = (A[2] * 10000) | |
54 | - | let G = (A[3] * 10000) | |
55 | - | let H = (A[4] * 10000) | |
56 | - | let I = (A[5] * 10000) | |
57 | - | let J = (A[6] * 10000) | |
58 | - | let K = (A[7] * 10000) | |
59 | - | let L = (A[8] * 10000) | |
60 | - | let M = (A[9] * 10000) | |
61 | - | let N = (A[10] * 10000) | |
62 | - | let O = (A[11] * 10000) | |
63 | - | let P = (A[12] * 10000) | |
64 | - | let Q = (A[13] * 10000) | |
65 | - | let R = (A[14] * 10000) | |
66 | - | let S = (A[15] * 10000) | |
67 | - | let T = (A[16] * 10000) | |
68 | - | let U = (A[17] * 10000) | |
69 | - | let V = (A[18] * 10000) | |
70 | - | let W = (A[19] * 10000) | |
71 | - | let X = (A[20] * 10000) | |
72 | - | let Y = (A[21] * 10000) | |
73 | - | let Z = (A[22] * 10000) | |
74 | - | let aa = [D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z] | |
75 | - | let ab = e(aa, a, b) | |
76 | - | let ac = z(ab, 15) | |
77 | - | let ad = x(ac, c, d) | |
78 | - | let ae = ad | |
79 | - | let af = ae[0] | |
80 | - | let ag = ae[1] | |
81 | - | let ah = nil | |
82 | - | ([IntegerEntry("move_prediction_0", af), IntegerEntry("move_prediction_1", ag)] ++ ah) | |
46 | + | func m (n,o) = if ((o == 1)) | |
47 | + | then [l(n[0])] | |
48 | + | else [l(n[0]), l(n[1])] | |
49 | + | ||
50 | + | ||
51 | + | @Callable(p) | |
52 | + | func predict (n) = { | |
53 | + | let q = (n[0] * 10000) | |
54 | + | let r = (n[1] * 10000) | |
55 | + | let s = [q, r] | |
56 | + | let t = e(s, a, b) | |
57 | + | let u = m(t, 2) | |
58 | + | let v = k(u, c, d) | |
59 | + | let w = m(v, 1) | |
60 | + | let x = w[0] | |
61 | + | let y = nil | |
62 | + | ([IntegerEntry("move_prediction_0", x)] ++ y) | |
83 | 63 | } | |
84 | 64 | ||
85 | 65 |
github/deemru/w8io/169f3d6 58.09 ms ◑