diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2022-06-27 17:19:28 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2022-06-27 17:19:28 +0200 |
| commit | 5ab8a5088b729a9953b8dff1b2a985dc8fb2098b (patch) | |
| tree | ed40d6936c0e9eee40ba62751cbf99ecddbaddc2 /other/stuff.cpp | |
| parent | adabbad9c51cf7cd3874bfde8eac1fbcf84fec10 (diff) | |
updated tcr
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; |
