Submission #4327

# Submission time Handle Problem Language Result Execution time Memory
4327 2013-09-14T16:10:06 Z kipa00 덩치 (KOI13_body) C++
18 / 18
0 ms 1088 KB
#include <cstdio>

int main() {
  int i, j, N, x[50], y[50];
  scanf("%d", &N);
  for (i=0; i<N; ++i) {
    scanf("%d %d", &x[i], &y[i]);
  }
  for (i=0; i<N; ++i) {
    int prize = 1;
    for (j=0; j<N; ++j) {
      if (i == j) continue;
      if (x[j] > x[i] && y[j] > y[i]) {
        ++prize;
      }
    }
    printf("%d ", prize);
  }
  return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct