QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#142857 | #3097. Shopping | Qingyu | 0 | 3ms | 3652kb | C++20 | 750b | 2023-08-20 00:52:55 | 2023-08-20 01:27:59 |
Judging History
Anna
#include "Anna.h"
#include <vector>
namespace {
int N, L, R;
int count;
} // namespace
void InitA(int N, int L, int R) {
::N = N;
::L = L;
::R = R;
SendA(true);
count = 1;
}
void ReceiveA(bool x) {
if (count < 18) {
SendA(x);
++count;
}
}
int Answer() {
return L;
}
Bruno
#include "Bruno.h"
#include <vector>
namespace {
int N;
int variable_example[1000000];
int count;
bool FunctionExample(bool P) {
return !P;
}
} // namespace
void InitB(int N, std::vector<int> P) {
::N = N;
for(int i = 0; i < N; i++) {
variable_example[i] = P[i];
}
count = 0;
}
void ReceiveB(bool y) {
if (count < 10000) {
SendB(FunctionExample(y));
++count;
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 1
Accepted
time: 3ms
memory: 3508kb
input:
1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 -1 -1
output:
-1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 -1
input:
output:
Accepted: 18 18
result:
ok
Test #2:
score: 1
Accepted
time: 2ms
memory: 3564kb
input:
1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 -1 -1
output:
-1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 -1
input:
output:
Accepted: 18 18
result:
ok
Test #3:
score: 0
Wrong Answer
time: 2ms
memory: 3652kb
input:
1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 -1 -1
output:
-1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 -1 -1
input:
output:
Wrong Answer [2]
result:
wrong answer
Subtask #2:
score: 0
Skipped
Subtask #3:
score: 0
Skipped