mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-12-21 15:11:26 +01:00
chore: format using google style
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
d98a05a245
commit
1464165a91
3 changed files with 5 additions and 12 deletions
|
@ -35,7 +35,6 @@ void solve() {
|
|||
#ifndef TEST
|
||||
|
||||
int main(void) {
|
||||
|
||||
#ifdef SINGLE
|
||||
|
||||
solve();
|
||||
|
|
|
@ -5,11 +5,9 @@ namespace {
|
|||
using namespace std;
|
||||
|
||||
long pow(long base, long exp) {
|
||||
if (exp == 0)
|
||||
return 1;
|
||||
if (exp == 0) return 1;
|
||||
long half = pow(base, exp / 2);
|
||||
if (exp % 2 == 0)
|
||||
return half * half;
|
||||
if (exp % 2 == 0) return half * half;
|
||||
return half * half * base;
|
||||
}
|
||||
|
||||
|
@ -34,7 +32,6 @@ void solve() {
|
|||
#ifndef TEST
|
||||
|
||||
int main(void) {
|
||||
|
||||
#ifdef SINGLE
|
||||
|
||||
solve();
|
||||
|
|
|
@ -5,11 +5,9 @@ namespace {
|
|||
using namespace std;
|
||||
|
||||
long pow(long base, long exp) {
|
||||
if (exp == 0)
|
||||
return 1;
|
||||
if (exp == 0) return 1;
|
||||
long half = pow(base, exp / 2);
|
||||
if (exp % 2 == 0)
|
||||
return half * half;
|
||||
if (exp % 2 == 0) return half * half;
|
||||
return half * half * base;
|
||||
}
|
||||
|
||||
|
@ -40,7 +38,7 @@ void solve() {
|
|||
cout << find_k(a, b) << "\n";
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
// for single test case, comment out for ‹N› test cases
|
||||
#define SINGLE
|
||||
|
@ -48,7 +46,6 @@ void solve() {
|
|||
#ifndef TEST
|
||||
|
||||
int main(void) {
|
||||
|
||||
#ifdef SINGLE
|
||||
|
||||
solve();
|
||||
|
|
Loading…
Reference in a new issue