답안 #839536

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
839536 2023-08-30T08:58:28 Z model_code A Plus B (IOI23_aplusb) C++17
60 / 100
516 ms 35816 KB
// incorrect/sol-birka0-wa.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, 3000);
    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];
	}
	sort(C.begin(),C.end());

	vector<int> ans(N);
	for(int i=0; i<N; i++) ans[i] = C[i];
	return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 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
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 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 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 1 ms 212 KB Output is correct
10 Correct 1 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 1 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 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 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 1 ms 212 KB Output is correct
10 Correct 1 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 1 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 18 ms 2388 KB Output is correct
24 Correct 21 ms 2388 KB Output is correct
25 Correct 13 ms 2532 KB Output is correct
26 Correct 208 ms 24788 KB Output is correct
27 Correct 327 ms 24788 KB Output is correct
28 Correct 150 ms 24788 KB Output is correct
29 Correct 3 ms 340 KB Output is correct
30 Correct 37 ms 2492 KB Output is correct
31 Correct 34 ms 2388 KB Output is correct
32 Correct 36 ms 2388 KB Output is correct
33 Correct 422 ms 24788 KB Output is correct
34 Correct 417 ms 24788 KB Output is correct
35 Correct 435 ms 24788 KB Output is correct
36 Correct 322 ms 24788 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 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 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 1 ms 212 KB Output is correct
10 Correct 1 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 1 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 18 ms 2388 KB Output is correct
24 Correct 21 ms 2388 KB Output is correct
25 Correct 13 ms 2532 KB Output is correct
26 Correct 208 ms 24788 KB Output is correct
27 Correct 327 ms 24788 KB Output is correct
28 Correct 150 ms 24788 KB Output is correct
29 Correct 3 ms 340 KB Output is correct
30 Correct 37 ms 2492 KB Output is correct
31 Correct 34 ms 2388 KB Output is correct
32 Correct 36 ms 2388 KB Output is correct
33 Correct 422 ms 24788 KB Output is correct
34 Correct 417 ms 24788 KB Output is correct
35 Correct 435 ms 24788 KB Output is correct
36 Correct 322 ms 24788 KB Output is correct
37 Incorrect 516 ms 35816 KB 1st lines differ - on the 3536th token, expected: '574476', found: '600000'
38 Halted 0 ms 0 KB -