#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;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |