use greedy answer is always multiply elements of a, b in sorted order.
then answer only change if a[x] == b[x] on the sorted order I mean, so update answer on those incidents
use greedy answer is always multiply elements of a, b in sorted order.
then answer only change if a[x] == b[x] on the sorted order I mean, so update answer on those incidents