# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
257264 | maximath_1 | Mixture (BOI20_mixture) | C++11 | 394 ms | 8548 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 ll long long
#define pt pair<ll, ll>
int sign(ll x){
if(x > 0) return 1;
if(x < 0) return -1;
return 0;
}
int half(pt x){
if(x.second != 0)
return sign(x.second);
return -sign(x.first);
}
__int128_t cross(pt a, pt b){
return (__int128_t)a.first * b.second - (__int128_t)a.second * b.first;
}
bool angCmp(pt a, pt b){
int A = half(a), B = half(b);
if(A == B) return cross(a, b) > 0;
return A < B;
}
typedef array<ll, 3> T;
T a;
int eq = 0, neg = 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... |