QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#26151#67. Two TransportationsQingyu0 200ms3308kbC++20988b2022-04-06 19:04:022023-01-15 11:48:17

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-01-15 11:48:17]
  • 评测
  • 测评结果:0
  • 用时:200ms
  • 内存:3308kb
  • [2022-04-06 19:04:02]
  • 提交

Azer

#include "Azer.h"
#include <vector>

namespace {

int N;
int variable_example[500000];
int count;

}  // namespace

void InitA(int N, int A, std::vector<int> U, std::vector<int> V,
           std::vector<int> C) {
  ::N = N;
  for (int i = 0; i < A; ++i) {
    variable_example[i] = U[i] + V[i] - C[i];
  }
  SendA(true);
  count = 1;
}

void ReceiveA(bool x) {
  ++count;
  if (count < 58000) {
    SendA(x);
    ++count;
  }
}

std::vector<int> Answer() {
  std::vector<int> ans(N);
  for (int k = 0; k < N; ++k) {
    ans[k] = k & 1;
  }
  return ans;
}

Baijan

#include "Baijan.h"
#include <vector>

namespace {

int N;
int count;

bool FunctionExample(bool P) {
  return !P;
}

}  // namespace

void InitB(int N, int B, std::vector<int> S, std::vector<int> T,
           std::vector<int> D) {
  ::N = N;
  count = 0;
}

void ReceiveB(bool y) {
  ++count;
  if (count < 58000) {
    SendB(FunctionExample(y));
    ++count;
  }
}

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 146ms
memory: 3116kb

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
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
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
0 -1
1 -1
0 -1
1 -1
0 -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
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
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
0 -1
1 -1
0 -1
1 -1
0 -1
1 ...

input:


output:

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '2417', found: '1'

Subtask #2:

score: 0
Wrong Answer

Test #7:

score: 8
Accepted
time: 152ms
memory: 3172kb

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
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
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
0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0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '128264', found: '1'

Subtask #3:

score: 0
Wrong Answer

Test #14:

score: 0
Wrong Answer
time: 120ms
memory: 3080kb

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
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
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
0 -1
1 -1
0 -1
1 -1
0 -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
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
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
0 -1
1 -1
0 -1
1 -1
0 -1
1 ...

input:


output:

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '3328', found: '1'

Subtask #4:

score: 0
Wrong Answer

Test #24:

score: 0
Wrong Answer
time: 117ms
memory: 3056kb

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
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
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
0 -1
1 -1
0 -1
1 -1
0 -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
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
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
0 -1
1 -1
0 -1
1 -1
0 -1
1 ...

input:


output:

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '1881', found: '1'

Subtask #5:

score: 0
Wrong Answer

Test #38:

score: 0
Wrong Answer
time: 200ms
memory: 3248kb

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
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
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
0 -1
1 -1
0 -1
1 -1
0 -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
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
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
0 -1
1 -1
0 -1
1 -1
0 -1
1 ...

input:


output:

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '3467', found: '1'

Subtask #6:

score: 0
Wrong Answer

Test #51:

score: 0
Wrong Answer
time: 111ms
memory: 3060kb

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
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
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
0 -1
1 -1
0 -1
1 -1
0 -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
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
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
0 -1
1 -1
0 -1
1 -1
0 -1
1 ...

input:


output:

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '4745', found: '1'

Subtask #7:

score: 0
Wrong Answer

Test #64:

score: 0
Wrong Answer
time: 137ms
memory: 3308kb

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
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
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
0 -1
1 -1
0 -1
1 -1
0 -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
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
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
0 -1
1 -1
0 -1
1 -1
0 -1
1 ...

input:


output:

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

result:

wrong answer 2nd lines differ - expected: '25855', found: '1'