# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
523435 | tato | Geometrija (COCI21_geometrija) | C++14 | 1 ms | 296 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>
#define ll long long
#define pb push_back
#define fs first
#define sc second
#define pii pair<int,int>
using namespace std;
pii a[1001];
int check(pii vect, pii pt, pii npt)
{
int A = vect.sc;
int B = (-1)*vect.fs;
int C = (-1)*A*(pt.fs) - B*(pt.sc);
if((A*npt.fs + B*npt.sc + C) > 0)
return 1;
else
if((A*npt.fs + B*npt.sc + C) < 0)
return 2;
else
return 0;
}
void answer()
{
int n;
int cnt = 0;
cin >> n;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |