Created
June 6, 2024 17:48
-
-
Save jakobrs/51f62f309b93f9112482a8a63e276bd8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #define USE_BITS_STDCPP | |
// #define USE_RARE_HEADERS | |
#ifdef USE_BITS_STDCPP | |
#include <bits/stdc++.h> | |
#endif | |
#include <algorithm> | |
#include <array> | |
#include <iostream> | |
#include <string> | |
#include <tuple> | |
#include <utility> | |
#include <vector> | |
#if __cplusplus >= 201703L | |
#include <optional> | |
#include <string_view> | |
#endif | |
#if __cplusplus >= 202002L | |
#include <expected> | |
#include <ranges> | |
#endif | |
#ifdef USE_RARE_HEADERS | |
#include <regex> | |
#if __cplusplus >= 202002L | |
#include <print> | |
#endif | |
#endif | |
// LIBRARIES | |
// #include <ds/union_find.h> | |
#define debug(...) \ | |
([](auto... &&args) { \ | |
((std::cout << args << ' '), ...); \ | |
std::cout << '\n'; \ | |
})(#__VA_ARGS__, ":", __VA_ARGS__) | |
int main() { | |
std::cin.tie(nullptr)->sync_with_stdio(false); | |
int t; | |
std::cin >> t; | |
while (t--) { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment