# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
24776 | taehoon1018 | 사회적 불평등 (TOKI14_social) | C11 | 300 ms | 1780 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
int abs(int x){
if(x<0)
return -x;
else return x;
}
int main(){
int N,L[100000],I[100000];
int i,j,temp;
long sum=0;
scanf("%d",&N);
for(i=0;i<N;i++)
scanf("%d %d",&L[i],&I[i]);
for(i=0;i<N;i++){
for(j=i+1;j<N;j++){
temp=(L[i]-L[j])*(I[i]-I[j]);
sum+=abs(temp);
}
}
printf("%ld",sum);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |