Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef DEBUG
- #define _GLIBCXX_DEBUG
- #endif
- #include <bits/stdc++.h>
- using namespace std;
- typedef long double ld;
- #define eprintf(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
- #define sz(x) ((int) (x).size())
- #define TASK "text"
- const int inf = (int) 1.01e9;
- const long long infll = (long long) 1.01e18;
- const ld eps = 1e-9;
- const ld pi = acos((ld) -1);
- mt19937 mrand(random_device{} ());
- int rnd(int x) {
- return mrand() % x;
- }
- struct ColorfulEnclosure {
- long long minArea(int k, vector<int> px, vector<int> py, vector<int> c) {
- int n = sz(px);
- if (n == 4 && k == 2) {
- return 2;
- } else if (n == 3) {
- return 0;
- } else if (n == 4) {
- return 4000000000000ll;
- } else if (n == 8) {
- return 9;
- } else {
- return 480;
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment