# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1221522 | nibert | Message (IOI24_message) | C++20 | 0 ms | 0 KiB |
#include <vector>
using namespace std;
// OJ will provide the implementation of this
extern vector<bool> send_packet(vector<bool> A);
// Constants
const int BITS = 31; // Packet length
const int REPEAT = 3; // Redundancy (must be ≥ 3 to tolerate 15 bad packets)
const int BITS_PER_PACKET = 10; // You can safely fit 10