답안 #839526

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
839526 2023-08-30T08:56:59 Z model_code A Plus B (IOI23_aplusb) C++17
60 / 100
530 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 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 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 316 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 276 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 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 1 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 256 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 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 316 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 276 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 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 1 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 256 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 13 ms 2508 KB Output is correct
24 Correct 18 ms 2508 KB Output is correct
25 Correct 14 ms 2508 KB Output is correct
26 Correct 205 ms 24776 KB Output is correct
27 Correct 276 ms 24788 KB Output is correct
28 Correct 136 ms 24788 KB Output is correct
29 Correct 3 ms 340 KB Output is correct
30 Correct 39 ms 2492 KB Output is correct
31 Correct 33 ms 2488 KB Output is correct
32 Correct 32 ms 2388 KB Output is correct
33 Correct 420 ms 24776 KB Output is correct
34 Correct 417 ms 24788 KB Output is correct
35 Correct 434 ms 24788 KB Output is correct
36 Correct 314 ms 24788 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 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 316 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 276 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 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 1 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 256 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 13 ms 2508 KB Output is correct
24 Correct 18 ms 2508 KB Output is correct
25 Correct 14 ms 2508 KB Output is correct
26 Correct 205 ms 24776 KB Output is correct
27 Correct 276 ms 24788 KB Output is correct
28 Correct 136 ms 24788 KB Output is correct
29 Correct 3 ms 340 KB Output is correct
30 Correct 39 ms 2492 KB Output is correct
31 Correct 33 ms 2488 KB Output is correct
32 Correct 32 ms 2388 KB Output is correct
33 Correct 420 ms 24776 KB Output is correct
34 Correct 417 ms 24788 KB Output is correct
35 Correct 434 ms 24788 KB Output is correct
36 Correct 314 ms 24788 KB Output is correct
37 Incorrect 530 ms 35816 KB 1st lines differ - on the 3536th token, expected: '574476', found: '600000'
38 Halted 0 ms 0 KB -