# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1123649 | raphaelp | 메시지 (IOI24_message) | C++20 | 522 ms | 840 KiB |
#include <bits/stdc++.h>
#include "message.h"
using namespace std;
/*vector<vector<bool>> B;
vector<bool> send_packet(vector<bool> A)
{
B.push_back(A);
return A;
}*/
void send_message(vector<bool> M, vector<bool> C)
{
vector<int> dist(31);
int last = 0, first = -1;
for (int i = 0; i < 31; i++)
{
if (C[i] == 0)
{
if (first == -1)
first = i;
dist[last] = i - last;
last = i;
}
}
dist[last] = 31 + first - last;
int buff = 0;
vector<bool> A(31);
for (int i = 0; i < 66; i++)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |