제출 #1357956

#제출 시각아이디문제언어결과실행 시간메모리
1357956hq77메시지 (IOI24_message)C++20
10 / 100
245 ms792 KiB
#include "message.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back

void send_message(std::vector<bool> M, std::vector<bool> C) {
  for(bool i:M){
    std::vector<bool> A(31, i);
    send_packet(A);
  }
}

std::vector<bool> receive_message(std::vector<std::vector<bool>> R) {
  vector<bool>ans;
  for(int i=0;i<R.size();i++){
    int sum=0;
    for(int j:R[i]) sum+=j;
    if(sum>=16)ans.pb(1);
    else ans.pb(0);
  }
  return ans;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…