QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#818852 | #9237. Message | hansiyuan# | 0 | 1ms | 3984kb | C++17 | 639b | 2024-12-18 10:03:38 | 2024-12-18 10:03:38 |
Judging History
answer
#include "message.h"
#include <bits/stdc++.h>
using namespace std;
int n;
vector<bool> A,B;
vector<bool> T;
void send_message(vector<bool> S,vector<bool> C){
n = S.size();
for(int i=0;i<=30;i++)
A.push_back(0),B.push_back(1);
for(int i=0;i<n;i++){
if(S[i]==0) send_packet(A);
else send_packet(B);
}
}
vector<bool> receive_message(vector<vector<bool>> R){
for(int i=0;i<n;i++){
int c0=0,c1=0;
for(int j=0;j<=30;j++)
if(R[i][j]) c1++;
else c0++;
if(c0>c1) T.push_back(0);
else T.push_back(1);
}
return T;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3984kb
Manager to Aisha
Aisha to Manager
Manager to Basma
Basma to Manager
Manager to Checker
0 ing with message 'Packet size is incorrect' Sending secret with code DIE to mgr2sol[0] Sending secret with code DIE to mgr2sol[1] Quitting with result code 1
result:
wrong output format Extra information in the output file
Subtask #2:
score: 0
Wrong Answer
Test #8:
score: 0
Wrong Answer
time: 1ms
memory: 3720kb
Manager to Aisha
Aisha to Manager
Manager to Basma
Basma to Manager
Manager to Checker
0 ing with message 'Used too many days' Sending secret with code DIE to mgr2sol[0] Sending secret with code DIE to mgr2sol[1] Quitting with result code 1
result:
wrong output format Extra information in the output file