# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
896465 | fanwen | Team Contest (JOI22_team) | C++17 | 74 ms | 9612 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;
#define fi first
#define se second
#define ll long long
#define file(name) \
if(fopen(name".inp", "r")) \
freopen(name".inp", "r", stdin), freopen(name".out", "w", stdout);
const int MAX = 1.5e5 + 5;
int n, a[MAX][3];
pair <int, int> p[3][MAX];
void you_make_it(void) {
cin >> n;
for (int i = 1; i <= n; ++i) {
for (int j = 0; j < 3; ++j) {
cin >> a[i][j];
p[j][i] = make_pair(a[i][j], i);
}
}
for (int i = 0; i < 3; ++i) {
sort(p[i] + 1, p[i] + n + 1, greater <pair <int, int>> ());
}
int pa = 1, pb = 1, pc = 1;
while(pa <= n && pb <= n && pc <= n) {
int x = p[0][pa].se, y = p[1][pb].se, z = p[2][pc].se;
# | 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... |