제출 #1298317

#제출 시각아이디문제언어결과실행 시간메모리
1298317sanduchicu메시지 (IOI24_message)C++20
0 / 100
468 ms800 KiB
#include <iostream> #include <vector> std::vector<bool> send_packet(std::vector<bool> A); void send_message(std::vector<bool> M, std::vector<bool> C) { for (bool c : C) send_packet(std::vector<bool>(31, c)); for (bool m : M) send_packet(std::vector<bool>(31, m)); } std::vector<bool> receive_message(std::vector<std::vector<bool>> R) { std::vector<int> C; for (int i = 0; i < 31; i++) { int count = 0; for (bool c : R[i]) { if (c) count++; else count--; } if (count < 0) C.push_back(i); } std::vector<bool> result; for (int i = 31; i < R.size(); i++) { for (int offset : C) { result.push_back(R[i][offset]); } } return std::move(result); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...