Submission #959331

# Submission time Handle Problem Language Result Execution time Memory
959331 2024-04-08T03:23:00 Z vjudge1 A Plus B (IOI23_aplusb) C++17
0 / 100
1 ms 348 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();
    int i =0;
    while (N--) {
        x[i] = *itr;
        i++ ;
        ++itr;
    }
    return x;
}


 
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -