답안 #959334

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
959334 2024-04-08T03:24:56 Z vjudge1 A Plus B (IOI23_aplusb) C++17
30 / 100
1000 ms 294056 KB
#include <bits/stdc++.h>
using namespace std; 

vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
    multiset<int> res;
    for(int i=0 ;i<N ;i++) {
        for(int j=0 ;j<N ;j++) {  
            res.insert(A[i]+B[j]); 
        }
    }
    vector<int> x;
    multiset<int>::iterator itr= res.begin();
    
    while (N--) {
        x.push_back(*itr);
        
        ++itr;
    }
    return x;
}


 
# 결과 실행 시간 메모리 Grader output
1 Correct 0 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 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 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 0 ms 348 KB Output is correct
5 Correct 0 ms 348 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 692 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 2 ms 856 KB Output is correct
12 Correct 1 ms 860 KB Output is correct
13 Correct 1 ms 860 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 600 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 1 ms 860 KB Output is correct
20 Correct 1 ms 792 KB Output is correct
21 Correct 2 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 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 0 ms 348 KB Output is correct
5 Correct 0 ms 348 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 692 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 2 ms 856 KB Output is correct
12 Correct 1 ms 860 KB Output is correct
13 Correct 1 ms 860 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 600 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 1 ms 860 KB Output is correct
20 Correct 1 ms 792 KB Output is correct
21 Correct 2 ms 1116 KB Output is correct
22 Correct 6 ms 2176 KB Output is correct
23 Correct 81 ms 26796 KB Output is correct
24 Correct 85 ms 26860 KB Output is correct
25 Correct 77 ms 26860 KB Output is correct
26 Correct 993 ms 293988 KB Output is correct
27 Execution timed out 1016 ms 294056 KB Time limit exceeded
28 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 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 0 ms 348 KB Output is correct
5 Correct 0 ms 348 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 692 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 2 ms 856 KB Output is correct
12 Correct 1 ms 860 KB Output is correct
13 Correct 1 ms 860 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 600 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 1 ms 860 KB Output is correct
20 Correct 1 ms 792 KB Output is correct
21 Correct 2 ms 1116 KB Output is correct
22 Correct 6 ms 2176 KB Output is correct
23 Correct 81 ms 26796 KB Output is correct
24 Correct 85 ms 26860 KB Output is correct
25 Correct 77 ms 26860 KB Output is correct
26 Correct 993 ms 293988 KB Output is correct
27 Execution timed out 1016 ms 294056 KB Time limit exceeded
28 Halted 0 ms 0 KB -