#include
void main()
{
int p;
scanf("%d",&p);
if(p>10||p<1)
return;
while(p--)
{
int n,m,min=100;
scanf("%d %d",&n,&m);
if(m<1||n>40||m>n)
return;
while(n--)
{
int t;
scanf("%d",&t);
if(t
0)
min=t;
}
printf("%dn",(100-min)*(100-min));
}
}
10||pn)return;while(n--){int " property="og:description"/>
#include
void main()
{
int p;
scanf("%d",&p);
if(p>10||p<1)
return;
while(p--)
{
int n,m,min=100;
scanf("%d %d",&n,&m);
if(m<1||n>40||m>n)
return;
while(n--)
{
int t;
scanf("%d",&t);
if(t
0)
min=t;
}
printf("%dn",(100-min)*(100-min));
}
}