# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
143439 | model_code | Data Transfer (IOI19_transfer) | C++17 | 6 ms | 1296 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// incorrect/2n_1.cpp
#include "transfer.h"
using namespace std;
//Author: Kian Mirjalali
//K = 2*N+1
typedef vector<int> VI;
VI get_attachment(VI source) {
const int N = source.size();
VI attachment = source;
attachment.insert(attachment.end(), source.begin(), source.end());
attachment.push_back(0);
return attachment;
}
VI retrieve(VI data) {
const int N = (data.size()-1)/3;
VI result(N, 0);
for (int i=0; i<N; i++)
if (data[i]+data[N+i]+data[2*N+i] > 1)
result[i] = 1;
return result;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |