HDACM2078
此题只需要找到难度最小的值然后求它与100差的平方即可
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while (t-->0) {
int n = sc.nextInt();
int m = sc.nextInt();
int min = 100;
for (int i = 0; i < n; i++) {
int a = sc.nextInt();
if (a<min) {
min = a;
}
}
System.out.println((100-min)*(100-min));
}
}
}