Submission #770253

# Submission time Handle Problem Language Result Execution time Memory
770253 2023-07-01T03:39:18 Z Plurm Team Contest (JOI22_team) C++11
8 / 100
2000 ms 4300 KB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    vector<tuple<int, int, int>> pts;
    for (int i = 0; i < n; i++) {
        int x, y, z;
        cin >> x >> y >> z;
        pts.push_back({x, y, z});
    }
    int mx = -1;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            for (int k = 0; k < n; k++) {
                if (get<0>(pts[i]) > get<0>(pts[j]) &&
                    get<0>(pts[i]) > get<0>(pts[k]) &&
                    get<1>(pts[j]) > get<1>(pts[i]) &&
                    get<1>(pts[j]) > get<1>(pts[k]) &&
                    get<2>(pts[k]) > get<2>(pts[i]) &&
                    get<2>(pts[k]) > get<2>(pts[j])) {
                    mx = max(mx,
                             get<0>(pts[i]) + get<1>(pts[j]) + get<2>(pts[k]));
                }
            }
        }
    }
    cout << mx << endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 300 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 296 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 55 ms 300 KB Output is correct
15 Correct 26 ms 212 KB Output is correct
16 Correct 38 ms 212 KB Output is correct
17 Correct 50 ms 212 KB Output is correct
18 Correct 46 ms 304 KB Output is correct
19 Correct 54 ms 292 KB Output is correct
20 Correct 48 ms 296 KB Output is correct
21 Correct 38 ms 304 KB Output is correct
22 Correct 38 ms 300 KB Output is correct
23 Correct 18 ms 212 KB Output is correct
24 Correct 39 ms 212 KB Output is correct
25 Correct 40 ms 304 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 300 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 296 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 55 ms 300 KB Output is correct
15 Correct 26 ms 212 KB Output is correct
16 Correct 38 ms 212 KB Output is correct
17 Correct 50 ms 212 KB Output is correct
18 Correct 46 ms 304 KB Output is correct
19 Correct 54 ms 292 KB Output is correct
20 Correct 48 ms 296 KB Output is correct
21 Correct 38 ms 304 KB Output is correct
22 Correct 38 ms 300 KB Output is correct
23 Correct 18 ms 212 KB Output is correct
24 Correct 39 ms 212 KB Output is correct
25 Correct 40 ms 304 KB Output is correct
26 Execution timed out 2065 ms 456 KB Time limit exceeded
27 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 304 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Execution timed out 2076 ms 4300 KB Time limit exceeded
12 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 304 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Execution timed out 2076 ms 4300 KB Time limit exceeded
12 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 304 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Execution timed out 2076 ms 4300 KB Time limit exceeded
12 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 304 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Execution timed out 2076 ms 4300 KB Time limit exceeded
12 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 300 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 296 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 55 ms 300 KB Output is correct
15 Correct 26 ms 212 KB Output is correct
16 Correct 38 ms 212 KB Output is correct
17 Correct 50 ms 212 KB Output is correct
18 Correct 46 ms 304 KB Output is correct
19 Correct 54 ms 292 KB Output is correct
20 Correct 48 ms 296 KB Output is correct
21 Correct 38 ms 304 KB Output is correct
22 Correct 38 ms 300 KB Output is correct
23 Correct 18 ms 212 KB Output is correct
24 Correct 39 ms 212 KB Output is correct
25 Correct 40 ms 304 KB Output is correct
26 Execution timed out 2065 ms 456 KB Time limit exceeded
27 Halted 0 ms 0 KB -