# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1221528 | nibert | Message (IOI24_message) | C++17 | 0 ms | 0 KiB |
#include <vector>
#include <cstdint> // for uint32_t
using namespace std;
const uint32_t GEN[16] = {
0b1111111111111110000000000000000,
0b0111111111111111000000000000000,
0b0011111111111111100000000000000,
0b0001111111111111110000000000000,
0b0000111111111111111000000000000,
0b0000011111111111111100000000000,
0b0000001111111111111110000000000,
0b0000000111111111111111000000000,
0b0000000011111111111111100000000,
0b0000000001111111111111110000000,
0b0000000000111111111111111000000,
0b0000000000011111111111111100000,
0b0000000000001111111111111110000,
0b0000000000000111111111111111000,
0b0000000000000011111111111111100,
0b0000000000000001111111111111110,
};
// Provided by the grader
extern vector<bool> send_packet(vector<bool> packet);
extern vector<vector<bool>> receive_packets();
void send_message(vector<bool> M, vector<bool>) {
int L = M.size();
for (int i = 0; i < L; i += 16