HDU 2078 选课时间( 水题 )


链接:传送门

思路:水题略


/*************************************************************************
> File Name: hdu2078.cpp
> Author: WArobot
> Blog: http://www.cnblogs.com/WArobot/
> Created Time: 2017年04月30日 星期日 23时47分30秒
************************************************************************/

include<bits/stdc++.h>

using namespace std;

int t,n,m;
int main(){
scanf("%d",&t);
while(t--){
scanf("%d%d",&n,&m);
int minn = 999;
for(int i=0;i<n;i++){
scanf("%d",&m);
minn = min(minn,m);
}
printf("%d\n",(100-minn)*(100-minn));
}
return 0;
}

posted @ 2017-04-30 23:55  ojnQ  阅读(181)  评论(0)    收藏  举报