| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1231390 | bangan | 메시지 (IOI24_message) | C++20 | 349 ms | 872 KiB |
#include "message.h"
#include <bits/stdc++.h>
using namespace std;
void send_message(std::vector<bool> M, std::vector<bool> C) {
// std::vector<bool> A(31, 0);
// send_packet(A);
for (bool x : M) send_packet(vector<bool>(31, x));
}
std::vector<bool> receive_message(std::vector<std::vector<bool>> R) {
vector<bool> ans;
for (auto vec : R) {
int cnt[2] {};
for (bool x : vec) cnt[x]++;
if (cnt[0]<cnt[1]) ans.push_back(1);
else ans.push_back(0);
}
return ans;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
