QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#818852#9237. Messagehansiyuan#0 1ms3984kbC++17639b2024-12-18 10:03:382024-12-18 10:03:38

Judging History

This is the latest submission verdict.

  • [2024-12-18 10:03:38]
  • Judged
  • Verdict: 0
  • Time: 1ms
  • Memory: 3984kb
  • [2024-12-18 10:03:38]
  • Submitted

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;
}

詳細信息

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