Submission #959334

# Submission time Handle Problem Language Result Execution time Memory
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;
}


 
# Verdict Execution time Memory 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
# Verdict Execution time Memory 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
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -