# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
24776 | taehoon1018 | 사회적 불평등 (TOKI14_social) | C11 | 300 ms | 1780 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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);
}
컴파일 시 표준 에러 (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... |