답안 #839554

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
839554 2023-08-30T08:59:06 Z model_code Coreputer (IOI23_coreputer) C++17
20 / 100
1 ms 208 KB
// correct/solution-subtask1.cpp

#include "coreputer.h"

#include <iostream>

std::vector<int> malfunctioning_cores(int N) {
	std::vector<int> c(N);
	for(int i=0; i<N; i++) c[i] = 0;
	
	int p = run_diagnostic({0});

	if(p<=0) c[1] = 1;
	if(p>=0) c[0] = 1;

	return c;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 208 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 0 ms 208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 208 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Incorrect 0 ms 208 KB Incorrect
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 208 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 0 ms 208 KB Output is correct
4 Correct 0 ms 208 KB Output is correct
5 Correct 1 ms 208 KB Output is correct
6 Incorrect 0 ms 208 KB Incorrect
7 Halted 0 ms 0 KB -