QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#834075#9237. Messagehansiyuan0 0ms0kbC++17601b2024-12-27 10:59:502024-12-27 10:59:52

Judging History

This is the latest submission verdict.

  • [2024-12-27 10:59:52]
  • Judged
  • Verdict: 0
  • Time: 0ms
  • Memory: 0kb
  • [2024-12-27 10:59:50]
  • Submitted

answer

#include "message.h"
#include<bits/stdc++.h>
using namespace std;
vector<vector<bool>> G;
vector<bool> _0(31,0),_1(31,1);
void send_message(vector<bool> A,vector<bool> C){
    int id = G.size();
    G.push_back(A);
    for(int i=0;i<=15;i++){
        if(id>>i&1) send_packet(_1);
        else send_packet(_0);
    }
}
vector<bool> receive_message(vector<vector<bool>> A){
    int id=0;
    for(int i=0;i<=15;i++){
        int c0=0,c1=0;
        for(int j=0;j<31;j++)
            if(A[i][j]==0) c0++;
            else c1++;
        if(c1>c0) id|=(1<<i);
    }
    return G[id];
}

详细

Subtask #1:

score: 0
Instance #1 Runtime Error

Test #1:

score: 0
Instance #1 Runtime Error

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

0
ing with message 'manual RTE, cant read int from grader'
Quitting with result code 1

result:


Subtask #2:

score: 0
Instance #1 Runtime Error

Test #8:

score: 0
Instance #1 Runtime Error

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

0
ing with message 'manual RTE, cant read int from grader'
Quitting with result code 1

result: