# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
159706 | geon040702 | 덩치 (KOI13_body) | C++14 | 2 ms | 504 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 <bits/stdc++.h>
using namespace std;
struct data {
int kg;
int cm;
int grade = 1;
};
int n, i, j;
int main(void)
{
data person[110];
scanf("%d", &n);
for(i=0;i<n;i++) {
scanf("%d%d", &person[i].kg, &person[i].cm);
}
for(i=0;i<n;i++) {
for(j=0;j<n;j++) {
if(person[i].cm < person[j].cm && person[i].kg < person[j].kg) {
person[i].grade+=1;
}
}
}
for(i=0;i<n;i++) {
printf("%d ", person[i].grade);
}
return 0;
}
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |