diff options
Diffstat (limited to 'other/stuff.cpp')
| -rw-r--r-- | other/stuff.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/other/stuff.cpp b/other/stuff.cpp new file mode 100644 index 0000000..81286d8 --- /dev/null +++ b/other/stuff.cpp @@ -0,0 +1,30 @@ +// Alles-Header. +#include <bits/stdc++.h> + +// Setzt das deutsche Tastaturlayout. +setxkbmap de + +// Schnelle Ein-/Ausgabe mit cin/cout. +ios::sync_with_stdio(false); +cin.tie(nullptr); + +// Set mit eigener Sortierfunktion. +// Typ muss nicht explizit angegeben werden. +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 long long INF = 0x3FFF_FFFF_FFFF_FFFFll; +// 1e9 < INF < Max_Value / 2 +constexpr int INF = 0x3FFF_FFFF; |
