# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
840844 |
2023-08-31T18:33:35 Z |
Desh03 |
A Plus B (IOI23_aplusb) |
C++17 |
|
731 ms |
69004 KB |
#include <bits/stdc++.h>
using namespace std;
vector<int> smallest_sums(int n, vector<int> a, vector<int> b) {
vector<int> v;
for (int j = 0; j < min(70, n); j++) {
for (int i = j; i < n; i++) {
v.push_back(a[j] + b[i]);
if (i != j) v.push_back(b[j] + a[i]);
}
}
sort(v.begin(), v.end());
return vector<int> (v.begin(), v.begin() + n);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
1 ms |
340 KB |
Output is correct |
22 |
Correct |
2 ms |
468 KB |
Output is correct |
23 |
Correct |
5 ms |
848 KB |
Output is correct |
24 |
Correct |
5 ms |
848 KB |
Output is correct |
25 |
Correct |
5 ms |
848 KB |
Output is correct |
26 |
Correct |
17 ms |
2504 KB |
Output is correct |
27 |
Correct |
18 ms |
2504 KB |
Output is correct |
28 |
Correct |
17 ms |
2504 KB |
Output is correct |
29 |
Correct |
1 ms |
468 KB |
Output is correct |
30 |
Correct |
5 ms |
848 KB |
Output is correct |
31 |
Correct |
5 ms |
848 KB |
Output is correct |
32 |
Correct |
5 ms |
848 KB |
Output is correct |
33 |
Correct |
16 ms |
2504 KB |
Output is correct |
34 |
Correct |
17 ms |
2504 KB |
Output is correct |
35 |
Correct |
17 ms |
2504 KB |
Output is correct |
36 |
Correct |
19 ms |
2504 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
1 ms |
340 KB |
Output is correct |
22 |
Correct |
2 ms |
468 KB |
Output is correct |
23 |
Correct |
5 ms |
848 KB |
Output is correct |
24 |
Correct |
5 ms |
848 KB |
Output is correct |
25 |
Correct |
5 ms |
848 KB |
Output is correct |
26 |
Correct |
17 ms |
2504 KB |
Output is correct |
27 |
Correct |
18 ms |
2504 KB |
Output is correct |
28 |
Correct |
17 ms |
2504 KB |
Output is correct |
29 |
Correct |
1 ms |
468 KB |
Output is correct |
30 |
Correct |
5 ms |
848 KB |
Output is correct |
31 |
Correct |
5 ms |
848 KB |
Output is correct |
32 |
Correct |
5 ms |
848 KB |
Output is correct |
33 |
Correct |
16 ms |
2504 KB |
Output is correct |
34 |
Correct |
17 ms |
2504 KB |
Output is correct |
35 |
Correct |
17 ms |
2504 KB |
Output is correct |
36 |
Correct |
19 ms |
2504 KB |
Output is correct |
37 |
Correct |
150 ms |
17084 KB |
Output is correct |
38 |
Correct |
608 ms |
67220 KB |
Output is correct |
39 |
Correct |
512 ms |
67240 KB |
Output is correct |
40 |
Correct |
526 ms |
67264 KB |
Output is correct |
41 |
Correct |
681 ms |
67568 KB |
Output is correct |
42 |
Correct |
643 ms |
68976 KB |
Output is correct |
43 |
Correct |
731 ms |
68984 KB |
Output is correct |
44 |
Correct |
150 ms |
17468 KB |
Output is correct |
45 |
Correct |
495 ms |
68524 KB |
Output is correct |
46 |
Correct |
499 ms |
68464 KB |
Output is correct |
47 |
Correct |
483 ms |
68616 KB |
Output is correct |
48 |
Correct |
651 ms |
69004 KB |
Output is correct |
49 |
Correct |
636 ms |
68960 KB |
Output is correct |
50 |
Correct |
710 ms |
68880 KB |
Output is correct |
51 |
Incorrect |
531 ms |
68772 KB |
1st lines differ - on the 10606th token, expected: '4441', found: '4442' |
52 |
Halted |
0 ms |
0 KB |
- |