2023-07-10 20:20:19 +02:00
|
|
|
|
#include <algorithm>
|
2023-07-23 11:39:05 +02:00
|
|
|
|
#include <bit>
|
2023-07-10 20:20:19 +02:00
|
|
|
|
#include <cassert>
|
|
|
|
|
#include <cctype>
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
#include <functional>
|
2023-05-14 14:39:42 +02:00
|
|
|
|
#include <iostream>
|
2023-07-23 11:39:05 +02:00
|
|
|
|
#include <map>
|
2023-07-10 20:20:19 +02:00
|
|
|
|
#include <optional>
|
2023-07-23 11:39:05 +02:00
|
|
|
|
#include <queue>
|
|
|
|
|
#include <set>
|
2023-07-10 20:20:19 +02:00
|
|
|
|
#include <sstream>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
2023-05-14 14:39:42 +02:00
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
template <typename T, typename U>
|
|
|
|
|
std::ostream &operator<<(std::ostream &s, std::pair<T, U> const &p) {
|
|
|
|
|
return s << p.first << " " << p.second;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-10 14:23:09 +02:00
|
|
|
|
namespace helpers {
|
2023-05-14 14:39:42 +02:00
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
namespace math {
|
|
|
|
|
|
2023-07-23 20:42:09 +02:00
|
|
|
|
static constexpr std::int32_t MODULO = 1000000007;
|
2023-07-23 11:39:05 +02:00
|
|
|
|
|
2023-07-10 11:39:30 +02:00
|
|
|
|
long pow(long base, long exp) {
|
2023-07-10 14:23:09 +02:00
|
|
|
|
if (exp == 0) return 1;
|
2023-07-10 11:39:30 +02:00
|
|
|
|
long half = pow(base, exp / 2);
|
2023-07-10 14:23:09 +02:00
|
|
|
|
if (exp % 2 == 0) return half * half;
|
2023-07-10 11:39:30 +02:00
|
|
|
|
return half * half * base;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
} // namespace math
|
|
|
|
|
|
|
|
|
|
namespace input {
|
|
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
|
std::vector<T> load_vector(std::size_t size) {
|
|
|
|
|
std::vector<T> result{};
|
|
|
|
|
|
|
|
|
|
for (auto i = 0u; i < size; ++i) {
|
|
|
|
|
T x;
|
|
|
|
|
std::cin >> x;
|
|
|
|
|
result.push_back(std::move(x));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace input
|
|
|
|
|
|
|
|
|
|
namespace output {
|
|
|
|
|
|
2023-07-10 14:23:09 +02:00
|
|
|
|
template <typename T>
|
|
|
|
|
inline void answer(const T &ans) {
|
2023-07-23 20:42:09 +02:00
|
|
|
|
std::cout << ans << "\n";
|
2023-07-10 14:23:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-23 20:42:09 +02:00
|
|
|
|
inline void yes() { std::cout << "YES\n"; }
|
|
|
|
|
inline void no() { std::cout << "NO\n"; }
|
|
|
|
|
inline void yesno(bool ans) { std::cout << (ans ? "YES" : "NO") << "\n"; }
|
2023-07-23 11:39:05 +02:00
|
|
|
|
|
|
|
|
|
} // namespace output
|
|
|
|
|
|
2023-07-23 20:42:09 +02:00
|
|
|
|
using namespace std;
|
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
using namespace math;
|
|
|
|
|
using namespace input;
|
|
|
|
|
using namespace output;
|
|
|
|
|
|
2023-07-23 20:42:09 +02:00
|
|
|
|
#define LOOP(var, n) for (auto var = 0; var < n; ++var)
|
2023-07-23 11:39:05 +02:00
|
|
|
|
|
2023-07-10 14:23:09 +02:00
|
|
|
|
} // namespace helpers
|
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
// for ‹N› test cases, uncomment for single test case
|
|
|
|
|
// #define SINGLE
|
|
|
|
|
|
|
|
|
|
namespace solution {
|
2023-07-10 14:23:09 +02:00
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
using namespace helpers;
|
|
|
|
|
|
2023-05-14 14:39:42 +02:00
|
|
|
|
void solve() {
|
|
|
|
|
// TODO
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
} // namespace solution
|
2023-05-14 14:39:42 +02:00
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
using namespace solution;
|
2023-07-10 09:53:39 +02:00
|
|
|
|
|
2023-07-10 14:23:09 +02:00
|
|
|
|
#ifdef TEST
|
|
|
|
|
|
|
|
|
|
#include "../.common/cpp/catch_amalgamated.hpp"
|
|
|
|
|
|
|
|
|
|
TEST_CASE("examples") {
|
|
|
|
|
// TODO
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#else
|
2023-07-10 09:53:39 +02:00
|
|
|
|
|
2023-05-14 14:39:42 +02:00
|
|
|
|
int main(void) {
|
2023-07-10 09:53:39 +02:00
|
|
|
|
|
|
|
|
|
#ifdef SINGLE
|
|
|
|
|
|
2023-07-23 11:39:05 +02:00
|
|
|
|
solution::solve();
|
2023-07-10 09:53:39 +02:00
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
// for multiple test cases
|
|
|
|
|
int N;
|
|
|
|
|
std::cin >> N >> std::ws;
|
|
|
|
|
|
|
|
|
|
for (auto i = 0; i < N; ++i) {
|
2023-07-23 11:39:05 +02:00
|
|
|
|
solution::solve();
|
2023-07-10 09:53:39 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-05-14 14:39:42 +02:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
2023-07-10 09:53:39 +02:00
|
|
|
|
|
2023-07-10 14:23:09 +02:00
|
|
|
|
#endif
|