Submission #1231390

#TimeUsernameProblemLanguageResultExecution timeMemory
1231390banganMessage (IOI24_message)C++20
10 / 100
349 ms872 KiB
#include "message.h" #include <bits/stdc++.h> using namespace std; void send_message(std::vector<bool> M, std::vector<bool> C) { // std::vector<bool> A(31, 0); // send_packet(A); for (bool x : M) send_packet(vector<bool>(31, x)); } std::vector<bool> receive_message(std::vector<std::vector<bool>> R) { vector<bool> ans; for (auto vec : R) { int cnt[2] {}; for (bool x : vec) cnt[x]++; if (cnt[0]<cnt[1]) ans.push_back(1); else ans.push_back(0); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...