| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 4109 | jays | Divide into triangle (kriii1_D) | C++98 | 0 ms | 1096 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <algorithm>
#include <cstdio>
using namespace std;
struct Stake {
int x, y, id;
bool operator < (const Stake& s) const {
return x != s.x ? x < s.x : y < s.y;
}
};
int N;
Stake s[901];
int main() {
scanf("%d", &N);
for (int i = 0; i < 3 * N; ++i) {
scanf("%d%d", &s[i].x, &s[i].y);
s[i].id = i + 1;
}
sort(s, s + 3 * N);
for (int i = 0; i < N; ++i)
printf("%d %d %d\n", s[3*i].id, s[3*i+1].id, s[3*i+2].id);
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
