mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
20 lines
358 B
C++
20 lines
358 B
C++
#include<stdio.h>
|
|
#include<iostream>
|
|
#include<algorithm>
|
|
using namespace std;
|
|
int a[45];
|
|
int main()
|
|
{
|
|
int t,m,n,i;
|
|
scanf("%d",&t);
|
|
while(t--)
|
|
{
|
|
scanf("%d%d",&n,&m);
|
|
for(i=0;i<n;i++) scanf("%d",&a[i]);
|
|
sort(a,a+n);
|
|
int s=(100-a[0])*(100-a[0]);
|
|
printf("%d\n",s);
|
|
}
|
|
return 0;
|
|
}
|