summaryrefslogtreecommitdiff
path: root/other/stuff.cpp
blob: 38fde784c5c20c6ec052f23aaff35c6a5e8df383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Alles-Header.
#include <bits/stdc++.h>

// Setzt deutsche Tastaturlayout / toggle mit alt + space
setxkbmap de
setxkbmap de,us -option grp:alt_space_toggle

// Schnelle Ein-/Ausgabe mit cin/cout.
ios::sync_with_stdio(false);
cin.tie(nullptr);

// Set mit eigener Sortierfunktion.
set<point2, decltype(comp)> set1(comp);

// STL-Debugging, Compiler flags.
-D_GLIBCXX_DEBUG
#define _GLIBCXX_DEBUG

// 128-Bit Integer/Float. Muss zum Einlesen/Ausgeben
// in einen int oder long long gecastet werden.
__int128, __float128

// float mit Decimaldarstellung
#include <decimal/decimal>
std::decimal::decimal128

// 1e18 < INF < Max_Value / 2
constexpr ll INF = 0x3FFF'FFFF'FFFF'FFFFll;
// 1e9 < INF < Max_Value / 2
constexpr int INF = 0x3FFF'FFFF;