#include "transfer.h"
#include <bits/stdc++.h>
//#include "grader.cpp"
using namespace std;
std::vector<int> get_attachment(std::vector<int> source) {
int n=source.size();
vector<int> a(n*2);
for(int i=0;i<n;i++){
a[i]=a[i+n]=source[i];
}
return a;
}
std::vector<int> retrieve(std::vector<int> data) {
int n=data.size()/3;
vector<int> ans;
for(int i=0;i<n;i++){
if(data[i]!=data[i+n]&&data[i]!=data[i+n*2]){
ans.push_back(data[i]^1);
}
else{
ans.push_back(data[i]);
}
}
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
9 ms |
912 KB |
Partially correct |
2 |
Partially correct |
8 ms |
1004 KB |
Partially correct |
3 |
Partially correct |
8 ms |
916 KB |
Partially correct |
4 |
Partially correct |
8 ms |
772 KB |
Partially correct |
5 |
Partially correct |
8 ms |
908 KB |
Partially correct |
6 |
Partially correct |
8 ms |
908 KB |
Partially correct |
7 |
Partially correct |
8 ms |
908 KB |
Partially correct |
8 |
Partially correct |
9 ms |
876 KB |
Partially correct |
9 |
Partially correct |
9 ms |
984 KB |
Partially correct |
10 |
Partially correct |
8 ms |
920 KB |
Partially correct |
11 |
Partially correct |
8 ms |
916 KB |
Partially correct |
12 |
Partially correct |
8 ms |
988 KB |
Partially correct |
13 |
Partially correct |
8 ms |
1024 KB |
Partially correct |
14 |
Partially correct |
8 ms |
916 KB |
Partially correct |
15 |
Partially correct |
8 ms |
916 KB |
Partially correct |
16 |
Partially correct |
8 ms |
908 KB |
Partially correct |
17 |
Partially correct |
8 ms |
908 KB |
Partially correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
279 ms |
4804 KB |
Partially correct |
2 |
Partially correct |
281 ms |
4800 KB |
Partially correct |
3 |
Partially correct |
277 ms |
4796 KB |
Partially correct |
4 |
Partially correct |
282 ms |
4796 KB |
Partially correct |
5 |
Partially correct |
279 ms |
4804 KB |
Partially correct |
6 |
Partially correct |
277 ms |
4804 KB |
Partially correct |
7 |
Partially correct |
283 ms |
4792 KB |
Partially correct |
8 |
Partially correct |
281 ms |
4928 KB |
Partially correct |
9 |
Partially correct |
278 ms |
4796 KB |
Partially correct |
10 |
Partially correct |
278 ms |
4752 KB |
Partially correct |
11 |
Partially correct |
282 ms |
4800 KB |
Partially correct |
12 |
Partially correct |
282 ms |
4800 KB |
Partially correct |
13 |
Partially correct |
287 ms |
4796 KB |
Partially correct |
14 |
Partially correct |
282 ms |
4796 KB |
Partially correct |
15 |
Partially correct |
276 ms |
4796 KB |
Partially correct |
16 |
Partially correct |
288 ms |
4776 KB |
Partially correct |
17 |
Partially correct |
298 ms |
4792 KB |
Partially correct |
18 |
Partially correct |
355 ms |
4836 KB |
Partially correct |
19 |
Partially correct |
308 ms |
4788 KB |
Partially correct |