sum_{i = 1}^nsum_{j = 1}^m lfloor sqrt{|a_i - b_j|} rfloor.x denotes the maximum integer does not exceed x,and |x| denotes the absolute value of x.
Bobo has two sequences of integers {a_1, a_2, dots, a_n} {a 1 ,a 2 ,…,a n } and {b_1, b_2, dots, b_m} {b 1 ,b 2 ,…,b m }. He would like to find sum_{i = 1}^nsum_{j = 1}^m lfloor sqrt{|a_i - b_j|} rfloor. ∑ i=1 n ∑ j=1 m ⌊ ∣a i −b j ∣ ⌋. Note that lfloor x rfloor ⌊x⌋ denotes the maximum integer does not exceed x, and |x| denotes the absolute value of x.
(图片来源网络,侵删)