Guest User

Untitled

a guest
Nov 9th, 2018
713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. #ifdef DEBUG
  2. #define _GLIBCXX_DEBUG
  3. #endif
  4.  
  5. #include <bits/stdc++.h>
  6.  
  7. using namespace std;
  8.  
  9. typedef long double ld;
  10.  
  11. #define eprintf(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
  12.  
  13. #define sz(x) ((int) (x).size())
  14. #define TASK "text"
  15.  
  16. const int inf = (int) 1.01e9;
  17. const long long infll = (long long) 1.01e18;
  18. const ld eps = 1e-9;
  19. const ld pi = acos((ld) -1);
  20.  
  21. mt19937 mrand(random_device{} ());
  22.  
  23. int rnd(int x) {
  24.   return mrand() % x;
  25. }
  26.  
  27. struct ColorfulEnclosure {
  28.   long long minArea(int k, vector<int> px, vector<int> py, vector<int> c) {
  29.     int n = sz(px);
  30.     if (n == 4 && k == 2) {
  31.       return 2;
  32.     } else if (n == 3) {
  33.       return 0;
  34.     } else if (n == 4) {
  35.       return 4000000000000ll;
  36.     } else if (n == 8) {
  37.       return 9;
  38.     } else {
  39.       return 480;
  40.     }
  41.   }
  42. };
Advertisement
Add Comment
Please, Sign In to add comment