# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
705851 | mychecksedad | Building Bridges (CEOI17_building) | C++17 | 95 ms | 11268 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.
/* Author : Mychecksdead */
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define MOD (1000000000+7)
#define MOD1 (998244353)
#define PI 3.1415926535
#define pb push_back
#define all(x) x.begin(), x.end()
const int N = 1e6+100, M = 1e5+10, K = 20;
struct Line{
bool type;
double x;
ll m, c;
bool operator < (const Line &b) const{
if(type != b.type) return x < b.x;
return m > b.m;
}
};
set<Line> cht;
bool notbegin(const set<Line>::iterator &it){
return it != cht.begin();
}
bool notend(const set<Line>::iterator &it){
return it != cht.end() && next(it) != cht.end();
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... |