Skip to content

Instantly share code, notes, and snippets.

@jakobrs
Created June 6, 2024 17:48
Show Gist options
  • Save jakobrs/51f62f309b93f9112482a8a63e276bd8 to your computer and use it in GitHub Desktop.
Save jakobrs/51f62f309b93f9112482a8a63e276bd8 to your computer and use it in GitHub Desktop.
// #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