QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#885145#9237. MessageGeekmen10 137ms3840kbC++17548b2025-02-06 14:13:512025-02-06 14:14:01

Judging History

This is the latest submission verdict.

  • [2025-02-06 14:14:01]
  • Judged
  • Verdict: 10
  • Time: 137ms
  • Memory: 3840kb
  • [2025-02-06 14:13:51]
  • Submitted

answer

#include <iostream>
#include <vector>
#include "message.h"
using namespace std;

void send_message(std::vector<bool> M, std::vector<bool> C) {
	int S = M.size();
	for (int i = 0; i < S; i ++)
		send_packet(std::vector<bool>(31, M[i]));
}
std::vector<bool> receive_message(std::vector<vector<bool>> R) {
	int S = R.size();
	std::vector<bool> res;
	for (int i = 0; i < S; i ++) {
		int C[2] = {0};
		for (int j = 0; j < 31; j ++)
			C[R[i][j]] ++;
		if (C[0] > C[1]) res.push_back(0);
		else res.push_back(1);
	}

	return res;
}

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 137ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Test #2:

score: 10
Accepted
time: 80ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Test #3:

score: 10
Accepted
time: 117ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Test #4:

score: 10
Accepted
time: 116ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Test #5:

score: 10
Accepted
time: 107ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Test #6:

score: 10
Accepted
time: 86ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Test #7:

score: 10
Accepted
time: 49ms
memory: 3840kb

Manager to Aisha


Aisha to Manager


Manager to Basma


Basma to Manager


Manager to Checker

1

result:

points 1.0

Subtask #2:

score: 0
Wrong Answer

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 3840kb

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