tx · GX4KLZSE1G1PjG43pacLim3YPnzY96vYVHG2EpwDN18R 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01000000 Waves 2023.11.10 12:53 [2837093] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "GX4KLZSE1G1PjG43pacLim3YPnzY96vYVHG2EpwDN18R", "fee": 1000000, "feeAssetId": null, "timestamp": 1699610094529, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "5SgmuYcUyzm7jgM18hDQYy19twxDEuYZgkQhxg1vbqrHuRDAFc2Yp1krheX3nkS6WXsgXtH95XmHhXrA7nsoiqTZ" ], "script": "base64:BgIUCAISABIAEgASABIDCgEIEgMKARgSAAJkOACAwtcvAQ10cnlHZXRJbnRlZ2VyAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDHRyeUdldFN0cmluZwIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJ0IAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYgUHJG1hdGNoMAUBYgIAAAdidXJueHRuASAkT3V5an4zObj7DP+EqXFcXsot3jOgxF1p+epEEexMVAADUFoxARoBV4WdLDDV/AM+YcWt3pK/xSqR85muGkFACgADUFoyARoBV/VGaCeADWjfTiZ1erSh0ygx4Am/9Xl5NwADUFozARoBV2tSHeFnXWIznET2mm8K7tVVyNog/OzmxwADUFo0ARoBV3y58iQseR35wgthXaflS34+Zvgx2eQg4gADUFo1ARoBV3MzW4tWeScsR41xkPYsILP5P0KX/ZxF0gADUFo2ARoBV0cdZvqwlGFolgcyrrZA46H/c85PJthHugAHV1hzdGFrZ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": 0 } View: original | compacted Prev: 7DbV1xz9vjp3ktDBZzWhs1FHLdXuxTVkW423B4dZ5S6L Next: AALpvpGky4mBaNXZmAUnDq7otXuYbVCazTxBD9yGuido Diff:
Old | New | Differences | |
---|---|---|---|
134 | 134 | let addresses = dropRight(tryGetString(this, "Addresses Eligible"), 1) | |
135 | 135 | let list = split(addresses, ",") | |
136 | 136 | let listSize = size(list) | |
137 | - | func dif (accum,address) = (accum ++ [IntegerEntry(address, (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
137 | + | let firstOfList = list[0] | |
138 | + | let lastOfList = list[(listSize - 1)] | |
139 | + | func dif (accum,address) = (accum ++ [IntegerEntry(("difference " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
138 | 140 | ||
139 | 141 | let enterDif = { | |
140 | 142 | let $l = list | |
150 | 152 | ||
151 | 153 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
152 | 154 | } | |
153 | - | ( | |
155 | + | ([IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList)] ++ enterDif) | |
154 | 156 | } | |
155 | 157 | ||
156 | 158 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let d8 = 100000000 | |
5 | 5 | ||
6 | 6 | func tryGetInteger (address,key) = match getInteger(address, key) { | |
7 | 7 | case b: Int => | |
8 | 8 | b | |
9 | 9 | case _ => | |
10 | 10 | 0 | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func tryGetString (address,key) = match getString(address, key) { | |
15 | 15 | case b: String => | |
16 | 16 | b | |
17 | 17 | case _ => | |
18 | 18 | "" | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | let burnxtn = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
23 | 23 | ||
24 | 24 | let PZ1 = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
25 | 25 | ||
26 | 26 | let PZ2 = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
27 | 27 | ||
28 | 28 | let PZ3 = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
29 | 29 | ||
30 | 30 | let PZ4 = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
31 | 31 | ||
32 | 32 | let PZ5 = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
33 | 33 | ||
34 | 34 | let PZ6 = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
35 | 35 | ||
36 | 36 | let WXstake = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
37 | 37 | ||
38 | 38 | let WX1 = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
39 | 39 | ||
40 | 40 | let LP1 = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
41 | 41 | ||
42 | 42 | let WX2 = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
43 | 43 | ||
44 | 44 | let LP2 = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
45 | 45 | ||
46 | 46 | func PZbal (Pooladdress,address) = { | |
47 | 47 | let burnxtnInPZ = tryGetInteger(Address(Pooladdress), (("global_" + toBase58String(burnxtn)) + "_balance")) | |
48 | 48 | let addressStakePZ = tryGetInteger(Address(Pooladdress), (toString(address) + "_indexStaked")) | |
49 | 49 | let totalStakePZ = tryGetInteger(Address(Pooladdress), "global_poolToken_amount") | |
50 | 50 | fraction(burnxtnInPZ, addressStakePZ, totalStakePZ) | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func WXbal (Pooladdress,address,LPstr) = { | |
55 | 55 | let burnxtnInWX = assetBalance(Address(Pooladdress), burnxtn) | |
56 | 56 | let addressStakeWX = tryGetInteger(Address(WXstake), ((("%s%s%s__staked__" + toString(address)) + "__") + LPstr)) | |
57 | 57 | let totalStakeWX = tryGetInteger(Address(WXstake), ("%s%s%s__staked__total__" + LPstr)) | |
58 | 58 | fraction(burnxtnInWX, addressStakeWX, totalStakeWX) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func totalBalance (address) = { | |
63 | 63 | let burnxtnBalance = assetBalance(address, burnxtn) | |
64 | 64 | let PZ1balance = PZbal(PZ1, address) | |
65 | 65 | let PZ2balance = PZbal(PZ2, address) | |
66 | 66 | let PZ3balance = PZbal(PZ3, address) | |
67 | 67 | let PZ4balance = PZbal(PZ4, address) | |
68 | 68 | let PZ5balance = PZbal(PZ5, address) | |
69 | 69 | let PZ6balance = PZbal(PZ6, address) | |
70 | 70 | let WX1balance = WXbal(WX1, address, LP1) | |
71 | 71 | let WX2balance = WXbal(WX2, address, LP2) | |
72 | 72 | let total = ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
73 | 73 | [IntegerEntry("burnxtnBalance", burnxtnBalance), IntegerEntry("PZ1balance", PZ1balance), IntegerEntry("PZ2balance", PZ2balance), IntegerEntry("PZ3balance", PZ3balance), IntegerEntry("PZ4balance", PZ4balance), IntegerEntry("PZ5balance", PZ5balance), IntegerEntry("PZ6balance", PZ6balance), IntegerEntry("WX1balance", WX1balance), IntegerEntry("WX2balance", WX2balance), IntegerEntry("total", total)] | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | @Callable(i) | |
78 | 78 | func register () = if (contains(tryGetString(this, "Address registered"), toString(i.caller))) | |
79 | 79 | then throw("already registered") | |
80 | 80 | else if ((height > 1)) | |
81 | 81 | then throw("registration closed") | |
82 | 82 | else [IntegerEntry("Amount Registered", (tryGetInteger(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger(this, "Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString(this, "Address registered") + toString(i.caller)) + ","))] | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | ||
86 | 86 | @Callable(i) | |
87 | 87 | func makeList () = { | |
88 | 88 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
89 | 89 | let list = split(addresses, ",") | |
90 | 90 | let listSize = size(list) | |
91 | 91 | func bal (accum,address) = if (((1 * d8) > wavesBalance(addressFromStringValue(address)).available)) | |
92 | 92 | then nil | |
93 | 93 | else (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
94 | 94 | ||
95 | 95 | let enterIntegers = { | |
96 | 96 | let $l = list | |
97 | 97 | let $s = size($l) | |
98 | 98 | let $acc0 = nil | |
99 | 99 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
100 | 100 | then $a | |
101 | 101 | else bal($a, $l[$i]) | |
102 | 102 | ||
103 | 103 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
104 | 104 | then $a | |
105 | 105 | else throw("List size exceeds 100") | |
106 | 106 | ||
107 | 107 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
108 | 108 | } | |
109 | 109 | func eli (accum,address) = if (((1 * d8) > wavesBalance(addressFromStringValue(address)).available)) | |
110 | 110 | then nil | |
111 | 111 | else [StringEntry("Addresses Eligible", ((tryGetString(this, "Addresses Eligible") + address) + ","))] | |
112 | 112 | ||
113 | 113 | let eligble = { | |
114 | 114 | let $l = list | |
115 | 115 | let $s = size($l) | |
116 | 116 | let $acc0 = nil | |
117 | 117 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
118 | 118 | then $a | |
119 | 119 | else eli($a, $l[$i]) | |
120 | 120 | ||
121 | 121 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
122 | 122 | then $a | |
123 | 123 | else throw("List size exceeds 100") | |
124 | 124 | ||
125 | 125 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
126 | 126 | } | |
127 | 127 | ((nil ++ enterIntegers) ++ eligble) | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func difference () = { | |
134 | 134 | let addresses = dropRight(tryGetString(this, "Addresses Eligible"), 1) | |
135 | 135 | let list = split(addresses, ",") | |
136 | 136 | let listSize = size(list) | |
137 | - | func dif (accum,address) = (accum ++ [IntegerEntry(address, (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
137 | + | let firstOfList = list[0] | |
138 | + | let lastOfList = list[(listSize - 1)] | |
139 | + | func dif (accum,address) = (accum ++ [IntegerEntry(("difference " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
138 | 140 | ||
139 | 141 | let enterDif = { | |
140 | 142 | let $l = list | |
141 | 143 | let $s = size($l) | |
142 | 144 | let $acc0 = nil | |
143 | 145 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
144 | 146 | then $a | |
145 | 147 | else dif($a, $l[$i]) | |
146 | 148 | ||
147 | 149 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
148 | 150 | then $a | |
149 | 151 | else throw("List size exceeds 100") | |
150 | 152 | ||
151 | 153 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
152 | 154 | } | |
153 | - | ( | |
155 | + | ([IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList)] ++ enterDif) | |
154 | 156 | } | |
155 | 157 | ||
156 | 158 | ||
157 | 159 | ||
158 | 160 | @Callable(i) | |
159 | 161 | func totalBalanceCaller () = (nil ++ totalBalance(i.caller)) | |
160 | 162 | ||
161 | 163 | ||
162 | 164 | ||
163 | 165 | @Callable(i) | |
164 | 166 | func totalBalanceAddress (address) = (nil ++ totalBalance(value(addressFromString(address)))) | |
165 | 167 | ||
166 | 168 | ||
167 | 169 | ||
168 | 170 | @Callable(i) | |
169 | 171 | func transfer (addresses) = { | |
170 | 172 | let assetId = i.payments[0].assetId | |
171 | 173 | let amount = i.payments[0].amount | |
172 | 174 | let amountPerAddress = (amount / size(addresses)) | |
173 | 175 | func f (accum,address) = (accum ++ [ScriptTransfer(addressFromStringValue(address), amountPerAddress, assetId)]) | |
174 | 176 | ||
175 | 177 | let $l = addresses | |
176 | 178 | let $s = size($l) | |
177 | 179 | let $acc0 = nil | |
178 | 180 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
179 | 181 | then $a | |
180 | 182 | else f($a, $l[$i]) | |
181 | 183 | ||
182 | 184 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
183 | 185 | then $a | |
184 | 186 | else throw("List size exceeds 100") | |
185 | 187 | ||
186 | 188 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
187 | 189 | } | |
188 | 190 | ||
189 | 191 |
github/deemru/w8io/026f985 41.00 ms ◑