2023-05-14 14:39:42 +02:00
|
|
|
|
#include <iostream>
|
|
|
|
|
|
2023-07-10 14:23:09 +02:00
|
|
|
|
namespace helpers {
|
2023-05-14 14:39:42 +02:00
|
|
|
|
|
2023-07-10 11:39:30 +02:00
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
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-10 14:23:09 +02:00
|
|
|
|
template <typename T>
|
|
|
|
|
inline void answer(const T &ans) {
|
|
|
|
|
cout << ans << "\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace helpers
|
|
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
using namespace helpers;
|
|
|
|
|
|
2023-05-14 14:39:42 +02:00
|
|
|
|
void solve() {
|
|
|
|
|
// TODO
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
2023-07-10 09:53:39 +02:00
|
|
|
|
// for single test case, comment out for ‹N› test cases
|
|
|
|
|
#define SINGLE
|
|
|
|
|
|
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-05-14 14:39:42 +02:00
|
|
|
|
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) {
|
|
|
|
|
solve();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#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
|