BXVXNVBVDK5R3N2XSSP7YQZDR4O7ZS6UX6FUDAYL5UPCJ2Q6A3CQC
let part1 (arr: int list) = query {
for a in arr do
for b in arr do
find (a + b = 2020)
}
let part2 (arr: int list) = query {
for a in arr do
let part1 (arr: int list) = query {
for a in arr do
for b in arr do
find (a + b = 2020)
}
let part2 (arr: int list) = query {
for a in arr do
let v = part1 arr |> tupleToArray2 |> Array.reduce (*)
printfn "%d" v
let v2 = part2 arr |> tupleToArray3 |> Array.reduce (*)
printfn "%d" v2
0
let v = part1 arr |> tupleToArray2 |> Array.reduce (*)
printfn "%d" v
let v2 = part2 arr |> tupleToArray3 |> Array.reduce (*)
printfn "%d" v2
0