J1 豁免疑问# Biology - 生物学
l*i
1 楼
two integer array:
a1, a2, ..., an
b1, b2, ..., bn
Given a1 + a2 + ... + an = b1 + b2 + ... + bn
and a1^2 + a2^2 + ... + an^2 = b1^2 + b2^2 + ... + bn
and a1 <= a2 <= ... <= an
b1 <= b2 <= ... <= bn
Is it true that
a1 = b1, a2 = b2, ... an = bn?
a1, a2, ..., an
b1, b2, ..., bn
Given a1 + a2 + ... + an = b1 + b2 + ... + bn
and a1^2 + a2^2 + ... + an^2 = b1^2 + b2^2 + ... + bn
and a1 <= a2 <= ... <= an
b1 <= b2 <= ... <= bn
Is it true that
a1 = b1, a2 = b2, ... an = bn?