# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1121001 | woohyun_jng | Message (IOI24_message) | C++17 | 826 ms | 420 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "message.h"
#include <bits/stdc++.h>
using namespace std;
void send_message(vector<bool> M, vector<bool> C) {
vector<bool> A(31, 0);
vector<int> B;
for (int i = 0; i < 31; i++) {
fill(A.begin(), A.end(), !C[i]);
send_packet(A);
if (!C[i])
B.push_back(i);
if (B.size() == 5) {
for (int j = i + 1; j < 31; j++) {
if (!C[j]) {
B.push_back(j);
continue;
}
for (int k = 0; k < 5; k++)
A[B[k]] = j & (1 << k);
send_packet(A);
}
break;
}
}
int S = M.size();
for (int j = 0; j < 10; j++)
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |