답안 #840839

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
840839 2023-08-31T18:30:14 Z Desh03 A Plus B (IOI23_aplusb) C++17
60 / 100
1000 ms 134560 KB
#include <bits/stdc++.h>

using namespace std;

vector<int> smallest_sums(int n, vector<int> a, vector<int> b) {
    vector<int> v;
    for (int j = 0; j < min(100, n); j++) {
        for (int i = j; i < n; i++) {
            v.push_back(a[j] + b[i]);
            if (i != j) v.push_back(b[j] + a[i]);        
        }
    }
    sort(v.begin(), v.end());
    return vector<int> (v.begin(), v.begin() + n);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 260 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 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 260 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 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 260 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 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
22 Correct 2 ms 592 KB Output is correct
23 Correct 7 ms 1484 KB Output is correct
24 Correct 7 ms 1448 KB Output is correct
25 Correct 7 ms 1484 KB Output is correct
26 Correct 25 ms 2504 KB Output is correct
27 Correct 25 ms 2504 KB Output is correct
28 Correct 24 ms 2504 KB Output is correct
29 Correct 2 ms 468 KB Output is correct
30 Correct 7 ms 1484 KB Output is correct
31 Correct 7 ms 1484 KB Output is correct
32 Correct 7 ms 1484 KB Output is correct
33 Correct 23 ms 2504 KB Output is correct
34 Correct 24 ms 2504 KB Output is correct
35 Correct 24 ms 2504 KB Output is correct
36 Correct 26 ms 2504 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 260 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 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
22 Correct 2 ms 592 KB Output is correct
23 Correct 7 ms 1484 KB Output is correct
24 Correct 7 ms 1448 KB Output is correct
25 Correct 7 ms 1484 KB Output is correct
26 Correct 25 ms 2504 KB Output is correct
27 Correct 25 ms 2504 KB Output is correct
28 Correct 24 ms 2504 KB Output is correct
29 Correct 2 ms 468 KB Output is correct
30 Correct 7 ms 1484 KB Output is correct
31 Correct 7 ms 1484 KB Output is correct
32 Correct 7 ms 1484 KB Output is correct
33 Correct 23 ms 2504 KB Output is correct
34 Correct 24 ms 2504 KB Output is correct
35 Correct 24 ms 2504 KB Output is correct
36 Correct 26 ms 2504 KB Output is correct
37 Correct 227 ms 17468 KB Output is correct
38 Correct 772 ms 68376 KB Output is correct
39 Correct 742 ms 68468 KB Output is correct
40 Correct 735 ms 68416 KB Output is correct
41 Execution timed out 1033 ms 134560 KB Time limit exceeded
42 Halted 0 ms 0 KB -