// incorrect/subtask1.cpp
#include "message.h"
#include <iostream>
#include <vector>
#include <algorithm>
void send_message(
std::vector<bool> message, std::vector<bool> /*positions*/) {
for (auto bit : message) {
std::vector<bool> bits(31);
for (int i=0; i<31; i++) bits[i] = bit;
send_packet(bits);
}
}
std::vector<bool> receive_message(
std::vector<std::vector<bool>> received_bits) {
std::vector<bool> message;
for (std::vector<bool> round : received_bits) {
std::sort(round.begin(), round.end());
message.push_back(round[15]);
}
return message;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
664 KB |
Used 4 days |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
934 ms |
1056 KB |
Used 64 days |
2 |
Correct |
489 ms |
840 KB |
Used 61 days |
3 |
Correct |
920 ms |
824 KB |
Used 64 days |
4 |
Correct |
691 ms |
816 KB |
Used 56 days |
5 |
Correct |
641 ms |
808 KB |
Used 64 days |
6 |
Correct |
467 ms |
852 KB |
Used 63 days |
7 |
Correct |
331 ms |
796 KB |
Used 64 days |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
664 KB |
Used 4 days |
2 |
Correct |
934 ms |
1056 KB |
Used 64 days |
3 |
Correct |
489 ms |
840 KB |
Used 61 days |
4 |
Correct |
920 ms |
824 KB |
Used 64 days |
5 |
Correct |
691 ms |
816 KB |
Used 56 days |
6 |
Correct |
641 ms |
808 KB |
Used 64 days |
7 |
Correct |
467 ms |
852 KB |
Used 63 days |
8 |
Correct |
331 ms |
796 KB |
Used 64 days |
9 |
Incorrect |
1 ms |
332 KB |
Used too many days |
10 |
Halted |
0 ms |
0 KB |
- |