sudo apt-get install python3-pip
sudo pip3 install virtualenv
| struct frac{ | |
| using ll = long long; | |
| ll fz, fm; | |
| frac() = default; | |
| frac(ll fz, ll fm) { // 构造函数变量名最好不要跟类成员名一样! | |
| assert(fm != 0); | |
| if (fm < 0) fm *= -1, fz *= -1; | |
| ll g = __gcd(abs(fz), fm); | |
| fz /= g, fm /= g; |
| template <typename T> | |
| T sq(const T &a){return a * a;} | |
| using ldb = long double; | |
| struct pnt{ | |
| ldb x, y; | |
| ldb len()const{ | |
| return std::sqrt(x * x + y * y); | |
| } | |
| ldb len2()const{ |
| #define SZ(x) (int)(x).size() | |
| const int N = 2e3+5; | |
| struct arc{ //据说数据量大时,vector存图比前向星块 | |
| int v; | |
| ll residual_capacity; | |
| int next; | |
| }; | |
| template <int DIM, int N = 100000> | |
| class KDtree { | |
| #define lson id<<1 | |
| #define rson id<<1|1 | |
| #define sqr(x) ((x)*(x)) | |
| // kd-tree | |
| using coord = array<int,DIM>; | |
| constexpr static auto dist2 = [](const coord &a, const coord &b) { | |
| ll ans = 0; | |
| for (int i = 0; i < DIM; i++) { |
| # References: | |
| # https://cmake.org/cmake/help/latest/command/add_custom_target.html | |
| # https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/ | |
| # https://gist.github.com/socantre/7ee63133a0a3a08f3990 | |
| # https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install | |
| # https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target | |
| # https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command | |
| # https://blog.csdn.net/gubenpeiyuan/article/details/51096777 | |
| cmake_minimum_required(VERSION 3.10) |
| #include <bits/stdc++.h> | |
| using namespace std; | |
| #define pb push_back | |
| #define eb emplace_back | |
| #define all(x) x.begin(), x.end() | |
| #define debug(x) cerr << #x <<": " << (x) << endl | |
| #define DEBUG printf("Passing [%s] in LINE %d\n",__FUNCTION__,__LINE__) | |
| #ifdef LOCAL | |
| #define see(x) cout << #x << ": " << (x) << endl |
| // Note, bsf/bsr are used by default. | |
| // Enable /arch:AVX2 compilation for better optimizations | |
| #if defined(_MSC_VER) && !defined(__clang__) | |
| #include <intrin.h> | |
| #include <limits.h> | |
| #if (defined(__cplusplus) && (__cplusplus >= 202002L)) || \ | |
| (defined(_MSVC_LANG) && (_MSVC_LANG >= 202002L)) | |
| #include <type_traits> |
| { | |
| "emojis": [ | |
| {"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
| const FullHeightPage = () => ( | |
| <div> | |
| Hello World! | |
| <style global jsx>{` | |
| html, | |
| body, | |
| body > div:first-child, | |
| div#__next, | |
| div#__next > div { | |
| height: 100%; |