Submission #1238685

#TimeUsernameProblemLanguageResultExecution timeMemory
1238685mathias_abadieMessage (IOI24_message)C++20
10 / 100
354 ms872 KiB
#include <bits/stdc++.h> #include "message.h" using namespace std; void send_message(vector<bool> M, vector<bool> C) { for (int j = 0; j < M.size(); j++){ vector<bool> A(31, 0); for (int i = 0; i <31; i++) { A[i] = M[j]; } send_packet(A); } } vector<bool> receive_message(vector<vector<bool>> R) { vector<bool> N; for (int i= 0; i<R.size(); i++){ int x = 0; int y = 0; for (int j = 0; j < 31; j++){ if (R[i][j] == 0){ x++; }else{ y++; } } if(x>y){ N.push_back(0); } else{ N.push_back(1); } } return N; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...