# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1016604 |
2024-07-08T08:56:28 Z |
Ariadna |
A Plus B (IOI23_aplusb) |
C++17 |
|
1 ms |
600 KB |
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
vector<int> sums;
for (int i = 0; i < sqrt(2*N+1); ++i) {
for (int j = 0; j < sqrt(2*N+1); ++j) {
sums.pb(A[i]+B[j]);
}
}
sort(sums.begin(), sums.end());
vector<int> ans(N);
for (int i = 0; i < N; ++i) ans[i] = sums[i];
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Incorrect |
1 ms |
348 KB |
1st lines differ - on the 1st token, expected: '465', found: '0' |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Incorrect |
1 ms |
348 KB |
1st lines differ - on the 1st token, expected: '465', found: '0' |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Incorrect |
1 ms |
348 KB |
1st lines differ - on the 1st token, expected: '465', found: '0' |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Incorrect |
1 ms |
348 KB |
1st lines differ - on the 1st token, expected: '465', found: '0' |
3 |
Halted |
0 ms |
0 KB |
- |