Skip to content

Commit 2287709

Browse files
committed
apply clang-format-19
1 parent 3c2cde8 commit 2287709

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

convolution/fft_double.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
#include <utility>
44
#include <vector>
55

6-
// CUT begin
76
// Convolution by FFT (Fast Fourier Transform)
87
// Algorithm based on http://kirika-comp.hatenablog.com/entry/2018/03/12/210446
98
// Verified: ATC001C (168 ms) https://atcoder.jp/contests/atc001/submissions/9243440
109
using cmplx = std::complex<double>;
1110
void fft(int N, std::vector<cmplx> &a, double dir) {
1211
int i = 0;
1312
for (int j = 1; j < N - 1; j++) {
14-
for (int k = N >> 1; k > (i ^= k); k >>= 1)
15-
;
13+
for (int k = N >> 1; k > (i ^= k); k >>= 1) {}
1614
if (j < i) std::swap(a[i], a[j]);
1715
}
1816

convolution/hadamard.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <cassert>
33
#include <vector>
44

5-
// CUT begin
65
// Fast Walsh-Hadamard transform and its abstraction
76
// Tutorials: <https://codeforces.com/blog/entry/71899>
87
// <https://csacademy.com/blog/fast-fourier-transform-and-variations-of-it>
@@ -50,13 +49,11 @@ template <typename T> std::vector<T> xorconv(std::vector<T> x, std::vector<T> y)
5049
// bitwise AND conolution
5150
// ret[i] = \sum_{(j & k) == i} x[j] * y[k]
5251
template <typename T> std::vector<T> andconv(std::vector<T> x, std::vector<T> y) {
53-
return bitwise_conv(
54-
x, y, [](T &lo, T &hi) { lo += hi; }, [](T &lo, T &hi) { lo -= hi; });
52+
return bitwise_conv(x, y, [](T &lo, T &hi) { lo += hi; }, [](T &lo, T &hi) { lo -= hi; });
5553
}
5654

5755
// bitwise OR convolution
5856
// ret[i] = \sum_{(j | k) == i} x[j] * y[k]
5957
template <typename T> std::vector<T> orconv(std::vector<T> x, std::vector<T> y) {
60-
return bitwise_conv(
61-
x, y, [](T &lo, T &hi) { hi += lo; }, [](T &lo, T &hi) { hi -= lo; });
58+
return bitwise_conv(x, y, [](T &lo, T &hi) { hi += lo; }, [](T &lo, T &hi) { hi -= lo; });
6259
}

flow/networksimplex.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ template <typename Capacity = long long, typename Weight = long long> struct mcf
12701270
int E;
12711271
std::vector<std::vector<int>> in_eids, out_eids;
12721272
std::vector<std::pair<int, int>> arcs;
1273-
Digraph(int V = 0) : V(V), E(0), in_eids(V), out_eids(V){};
1273+
Digraph(int V = 0) : V(V), E(0), in_eids(V), out_eids(V) {};
12741274
int add_edge(int s, int t) {
12751275
assert(0 <= s and s < V);
12761276
assert(0 <= t and t < V);

multithread/multithread_example.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using namespace std;
44
using pint = pair<int, int>;
55
#define FOR(i, begin, end) for (int i = (begin), i##_end_ = (end); i < i##_end_; i++)
6-
#define IFOR(i, begin, end) for (int i = (end)-1, i##_begin_ = (begin); i >= i##_begin_; i--)
6+
#define IFOR(i, begin, end) for (int i = (end) - 1, i##_begin_ = (begin); i >= i##_begin_; i--)
77
#define REP(i, n) FOR(i, 0, n)
88
#define IREP(i, n) IFOR(i, 0, n)
99
#define dbg(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ") " << __FILE__ << endl;
@@ -21,8 +21,7 @@ vector<string> ret;
2121
mutex mtx;
2222
vector<int> done;
2323

24-
void solve(int tc) { /* tc個目のテストケースを処理する関数 */
25-
}
24+
void solve(int tc) { /* tc個目のテストケースを処理する関数 */ }
2625

2726
void run() {
2827
/* 未完了で最も番号が若いテストケースを処理 */

string/palindromic_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace palindromic_tree {
99

1010
template <class Key> class Node {
1111
int suffix_link_; // このノードからのsuffix link (suffix の最長回文)
12-
int length_; // このノードが表す回文の長さ。 -1 となる場合もあるので注意
12+
int length_; // このノードが表す回文の長さ。 -1 となる場合もあるので注意
1313
std::map<Key, int> children;
1414

1515
public:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy