답안 #963532

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963532 2024-04-15T09:23:49 Z _unknown_2010 A Plus B (IOI23_aplusb) C++17
60 / 100
1000 ms 1051724 KB
#include "aplusb.h"
#include "bits/stdc++.h"
using namespace std;



vector<int> smallest_sums(int n, vector<int> a, vector<int> b) {
    vector<int> c;
    for(int i=0; i<n; i++){
        for(int j=0; j<n; j++){
            c.push_back(a[i]+b[j]);
        }
    }
    sort(c.begin(),c.end());
    vector<int> ans;
    for(int i=0; i<n; i++)ans.push_back(c[i]);
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 600 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 432 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 432 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 600 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 432 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 432 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 2 ms 728 KB Output is correct
23 Correct 13 ms 4796 KB Output is correct
24 Correct 28 ms 4812 KB Output is correct
25 Correct 14 ms 5328 KB Output is correct
26 Correct 168 ms 33736 KB Output is correct
27 Correct 247 ms 34492 KB Output is correct
28 Correct 122 ms 35264 KB Output is correct
29 Correct 2 ms 728 KB Output is correct
30 Correct 32 ms 5080 KB Output is correct
31 Correct 34 ms 6088 KB Output is correct
32 Correct 32 ms 5068 KB Output is correct
33 Correct 390 ms 33976 KB Output is correct
34 Correct 402 ms 33984 KB Output is correct
35 Correct 394 ms 35264 KB Output is correct
36 Correct 294 ms 33984 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 600 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 432 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 432 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 2 ms 728 KB Output is correct
23 Correct 13 ms 4796 KB Output is correct
24 Correct 28 ms 4812 KB Output is correct
25 Correct 14 ms 5328 KB Output is correct
26 Correct 168 ms 33736 KB Output is correct
27 Correct 247 ms 34492 KB Output is correct
28 Correct 122 ms 35264 KB Output is correct
29 Correct 2 ms 728 KB Output is correct
30 Correct 32 ms 5080 KB Output is correct
31 Correct 34 ms 6088 KB Output is correct
32 Correct 32 ms 5068 KB Output is correct
33 Correct 390 ms 33976 KB Output is correct
34 Correct 402 ms 33984 KB Output is correct
35 Correct 394 ms 35264 KB Output is correct
36 Correct 294 ms 33984 KB Output is correct
37 Execution timed out 1109 ms 1051724 KB Time limit exceeded
38 Halted 0 ms 0 KB -