mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-11-09 21:59:06 +01:00
Matej Focko
c2192f52e7
* add power * add ‹using namespace std› Signed-off-by: Matej Focko <me@mfocko.xyz>
54 lines
No EOL
627 B
C++
54 lines
No EOL
627 B
C++
#include <iostream>
|
||
|
||
namespace {
|
||
|
||
using namespace std;
|
||
|
||
long pow(long base, long exp) {
|
||
if (exp == 0)
|
||
return 1;
|
||
long half = pow(base, exp / 2);
|
||
if (exp % 2 == 0)
|
||
return half * half;
|
||
return half * half * base;
|
||
}
|
||
|
||
void solve() {
|
||
// TODO
|
||
}
|
||
|
||
} // namespace
|
||
|
||
// for single test case, comment out for ‹N› test cases
|
||
#define SINGLE
|
||
|
||
#ifndef TEST
|
||
|
||
int main(void) {
|
||
|
||
#ifdef SINGLE
|
||
|
||
solve();
|
||
|
||
#else
|
||
|
||
// for multiple test cases
|
||
int N;
|
||
std::cin >> N >> std::ws;
|
||
|
||
for (auto i = 0; i < N; ++i) {
|
||
solve();
|
||
}
|
||
|
||
#endif
|
||
|
||
return 0;
|
||
}
|
||
|
||
#else
|
||
|
||
#include "../.common/cpp/catch_amalgamated.hpp"
|
||
|
||
// TODO
|
||
|
||
#endif |