#include <stdio.h>
int main(void) {
int data[10]={-3,-10,0,7,2,7,-9,6,-9,4}, i, max,x,maxp;
max=-1;
maxp=0;
x=0;
for(i=0;i<10;i++){
x=data[i]*data[i];
if(max<x){
max=x;
maxp=data[i];
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgZGF0YVsxMF09ey0zLC0xMCwwLDcsMiw3LC05LDYsLTksNH0sIGksIG1heCx4LG1heHA7CgltYXg9LTE7CgltYXhwPTA7Cgl4PTA7Cglmb3IoaT0wO2k8MTA7aSsrKXsKCQl4PWRhdGFbaV0qZGF0YVtpXTsKCQlpZihtYXg8eCl7CgkJCW1heD14OwoJCQltYXhwPWRhdGFbaV07CgkJfQoJfQoKCXByaW50ZigiJWQlZCIsbWF4LG1heHApOwoJCgkKCXJldHVybiAwOwp9Cg==