Submission #1276622

#TimeUsernameProblemLanguageResultExecution timeMemory
1276622avighnaMessage (IOI24_message)C++20
10 / 100
365 ms840 KiB
#include <bits/stdc++.h> std::vector<bool> send_packet(std::vector<bool> A); void send_message(std::vector<bool> M, std::vector<bool> C) { auto send = [&](const std::string &s) { std::vector<bool> a(s.length()); for (int i = 0; i < s.length(); ++i) { a[i] = s[i] == '1'; } send_packet(a); }; for (bool i : M) { send(std::string(31, i + '0')); } } std::vector<bool> receive_message(std::vector<std::vector<bool>> R) { std::vector<bool> ans; for (auto a : R) { int o = 0, z = 0; for (bool i : a) { o += i, z += !i; } ans.push_back(o > z); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...