# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1038698 | abczz | Two Transportations (JOI19_transportations) | C++17 | 604 ms | 72320 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "Azer.h"
#include <vector>
#include <iostream>
#include <queue>
#include <array>
#define ll long long
using namespace std;
namespace{
bool doneA[2000];
ll n, distA[2000], pwa = 0, cura = 0, sza = 0, wa = 0, va = 0, tota;
priority_queue <array<ll, 2>, vector<array<ll, 2>>, greater<array<ll, 2>>> pqA;
vector <array<ll, 2>> adjA[2000];
void sendWeightA(ll u) {
for (int j=8; j>=0; --j) {
if (u & (1LL<<j)) SendA(1);
else SendA(0);
}
}
void sendNodeA(ll u) {
for (int j=10; j>=0; --j) {
if (u & (1LL<<j)) SendA(1);
else SendA(0);
}
}
void nxA() {
if (!tota) return;
--tota;
while (!pqA.empty()) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |