# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1131786 | birsnot | Hard route (IZhO17_road) | C++20 | 584 ms | 210860 KiB |
// author: Nardos Wehabe
#include "bits/stdc++.h"
#ifndef ONLINE_JUDGE
#include "./debug/debug.h"
#endif
using namespace std;
typedef long long ll;
typedef map<int, int, greater<>> mapg;
// typedef __int128 lll;
void chmx(int n, int& mx1, int& mx2) {
if (n > mx1) {
mx2 = mx1;
mx1 = n;
} else mx2 = max(n, mx2);
}
void chmx2(int n, int& mx1, int& mx2, int& mx3) {
if (n > mx1) {
mx3 = mx2;
mx2 = mx1;
mx1 = n;
} else chmx(n, mx2, mx3);
}
void convert3(mapg& cnts, array<array<int, 2>, 3>& cur) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |