From fe2f2064dc05447e4386351ee07408258f11283a Mon Sep 17 00:00:00 2001 From: subcrip Date: Sun, 29 Sep 2024 21:27:24 +0800 Subject: [PATCH] Update template.cc Signed-off-by: subcrip --- template.cc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/template.cc b/template.cc index c4aadc6..b775ab1 100644 --- a/template.cc +++ b/template.cc @@ -475,3 +475,44 @@ constexpr std::array __initarray(const T& value) { return detail::make_array(value, std::make_index_sequence()); } /*******************************************************/ + +// #define SINGLE_TEST_CASE +// #define DUMP_TEST_CASE 7219 +// #define TOT_TEST_CASE 10000 + +void dump() {} + +void dump_ignore() {} + +void prep() { +} + +// __attribute__((target("popcnt"))) +void solve() { +} + +int main() { +#if __cplusplus < 201402L or defined(_MSC_VER) and not defined(__clang__) + assert(false && "incompatible compiler variant detected."); +#endif + untie; + prep(); +#ifdef SINGLE_TEST_CASE + solve(); +#else + read(int, t); + for (int i = 0; i < t; ++i) { +#ifdef DUMP_TEST_CASE + if (t != (TOT_TEST_CASE)) { + solve(); + } else if (i + 1 == (DUMP_TEST_CASE)) { + dump(); + } else { + dump_ignore(); + } +#else + solve(); +#endif + } +#endif +}