| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1200608 | Bzslayed | 메시지 (IOI24_message) | C++20 | 372 ms | 872 KiB |
#include <bits/stdc++.h>
#include "message.h"
using namespace std;
void send_message(vector<bool> M, vector<bool> C){
for (bool x : M){
vector<bool> ans;
for (int i=0; i<31; i++) ans.push_back(x);
send_packet(ans);
}
}
vector<bool> receive_message(vector<vector<bool>> R){
vector<bool> ans;
for (vector<bool> v : R){
int zro = 0, one = 0;
for (auto it : v){
if (it == 0) zro++;
else one++;
}
if (zro > one) ans.push_back(0);
else ans.push_back(1);
}
return ans;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
