From 5ab8a5088b729a9953b8dff1b2a985dc8fb2098b Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 27 Jun 2022 17:19:28 +0200 Subject: updated tcr --- other/stuff.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 other/stuff.cpp (limited to 'other/stuff.cpp') 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 + +// 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 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 +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; -- cgit v1.2.3