# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
478828 | jk410 | Two Transportations (JOI19_transportations) | C++17 | 921 ms | 49336 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 <queue>
using namespace std;
namespace{
struct edge{
int v,cost;
bool operator<(const edge &t)const{
return cost>t.cost;
}
};
const int INF=1e9,cnt_cost=9,cnt_v=11;
int N,cnt,cnt_query,receive_cost,receive_v,you_cost,sent_cost;
edge closest;
bool cur_mode;
vector<int> Dist;
vector<bool> Used;
vector<vector<edge>> Edge;
priority_queue<edge> Q;
void my_send(int cnt,int x){
for (int i=0; i<cnt; i++)
SendA(x&(1<<i));
}
edge get_closest(){
while (!Q.empty()){
if (!Used[Q.top().v])
return Q.top();
Q.pop();
}
return {-1,-1};
Compilation message (stderr)
# | 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... |