답안 #839537

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
839537 2023-08-30T08:58:30 Z model_code A Plus B (IOI23_aplusb) C++17
60 / 100
490 ms 564228 KB
// incorrect/sol-birka0-wa-faster.cpp

#include "aplusb.h"

#include <algorithm>

using namespace std;

vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
    int X = min(N, 12000);
    vector<int> C(X*X);
	for(int i=0; i<X; i++){
		for(int j=0; j<X; j++) C[i*X+j] = A[i]+B[j];
	}
	partial_sort(C.begin(), C.begin() + N, C.end());

	return vector<int>(C.begin(), C.begin() + N);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 256 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 256 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 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 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 256 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 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 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 2 ms 2388 KB Output is correct
24 Correct 3 ms 2388 KB Output is correct
25 Correct 2 ms 2388 KB Output is correct
26 Correct 19 ms 24728 KB Output is correct
27 Correct 20 ms 24760 KB Output is correct
28 Correct 26 ms 24784 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 3 ms 2388 KB Output is correct
31 Correct 2 ms 2388 KB Output is correct
32 Correct 2 ms 2508 KB Output is correct
33 Correct 18 ms 24800 KB Output is correct
34 Correct 23 ms 24676 KB Output is correct
35 Correct 23 ms 24788 KB Output is correct
36 Correct 24 ms 24788 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 256 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 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 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 2 ms 2388 KB Output is correct
24 Correct 3 ms 2388 KB Output is correct
25 Correct 2 ms 2388 KB Output is correct
26 Correct 19 ms 24728 KB Output is correct
27 Correct 20 ms 24760 KB Output is correct
28 Correct 26 ms 24784 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 3 ms 2388 KB Output is correct
31 Correct 2 ms 2388 KB Output is correct
32 Correct 2 ms 2508 KB Output is correct
33 Correct 18 ms 24800 KB Output is correct
34 Correct 23 ms 24676 KB Output is correct
35 Correct 23 ms 24788 KB Output is correct
36 Correct 24 ms 24788 KB Output is correct
37 Incorrect 490 ms 564228 KB 1st lines differ - on the 16423rd token, expected: '618081', found: '630000'
38 Halted 0 ms 0 KB -