Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- // Integer type aliases.
- using s128=__int128;
- using s32=int;
- using s64=long long;
- using u128=unsigned __int128;
- using u32=unsigned;
- using u64=unsigned long long;
- // Casts to integer types.
- #define S128 static_cast<s128>
- #define S32 static_cast<s32>
- #define S64 static_cast<s64>
- #define U128 static_cast<u128>
- #define U32 static_cast<u32>
- #define U64 static_cast<u64>
- // Prime constant commonly used for modulo operations.
- constexpr s32 mod=998'244'353;
- // Large 32-bit and 64-bit prime constants respectively.
- constexpr s32 inf32=1'000'000'007;
- constexpr s64 inf64=1'000'000'000'000'000'003;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement