# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1088785 | _callmelucian | Olympic Bus (JOI20_ho_t4) | C++14 | 333 ms | 4956 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
If you're looking at my code for solution,
your brute-force code with a bit optimization is the solution.
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> pl;
typedef pair<int,int> pii;
typedef tuple<int,int,int> tt;
#define all(a) a.begin(), a.end()
#define filter(a) a.erase(unique(all(a)), a.end())
const int E = 5e4 + 4;
const int mn = 202;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
int direct[E], a[E], b[E], cost[E], revCost[E], n;
ll distanc[mn][mn], dist[mn];
vector<tt> adj[mn];
bool vis[mn];
ll dijkstra (int s, int t) {
for (int i = 1; i <= n; i++) dist[i] = LLONG_MAX, vis[i] = 0;
dist[s] = 0;
# | 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... |