# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
384798 | apostoldaniel854 | Mountains (IOI17_mountains) | C++14 | 1 ms | 364 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 HOME
#ifndef HOME
#include "mountains.h"
#endif // HOME
using ll = long long;
struct point_t {
int x;
int y;
};
/**
6
6 1 5 2 3 1
**/
const int MAX_N = 2000;
point_t p[1 + MAX_N];
int dp[1 + MAX_N][1 + MAX_N];
bool ccw (point_t a, point_t b, point_t c) {
return 1ll * (b.y - a.y) * (c.x - a.x) <= 1ll * (c.y - a.y) * (b.x - b.x);
}
# | 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... |