# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
888184 | heavylightdecomp | Tri (CEOI09_tri) | C++14 | 129 ms | 65536 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<bits/stdc++.h>
using namespace std;
#define cerr while(0) cerr
#define ld long double
#define x first
#define y second
#define vt vector
const int maxn = 2e5+5;
int K,M;
struct line {
ld m;
ld c;
line() {}
line(ld a, ld b) {
m = a;
c = b;
}
};
ld interx(line a, line b) {
ld res = (ld)(b.c - a.c) / (ld)(a.m - b.m);
return res;
}
line alns[maxn];
struct cht {
bool PREPPED = 0;
vt<int> emb;
vt<pair<ld, int>> sta;
void push(int lne) {
if(PREPPED) {
cerr << "Tried inserting on query-only mode!\n";
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |