This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define fs first | |
#define se second | |
#define all(v) v.begin(), v.end() | |
#define rep(i, n) for (int i = 0; i < n; ++i) | |
#define pb emplace_back | |
using pii = pair<int, int>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define fs first | |
#define se second | |
#define all(v) v.begin(), v.end() | |
#define rep(i, n) for (int i = 0; i < n; ++i) | |
#define pb emplace_back | |
using pii = pair<int, int>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define fs first | |
#define sc second | |
#define all(v) v.begin(), v.end() | |
#define rall(v) v.rbegin(), v.rend() | |
#define rep(i, n) for (int i = 0; i < n; ++i) | |
#define pb emplace_back | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define fs first | |
#define sc second | |
#define pb emplace_back | |
#define mp make_pair | |
#define all(v) v.begin(), v.end() | |
#define rall(v) v.rbegin(), v.rend() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
// boku no template meisou now | |
// clang-format off | |
// #define fs first | |
// #define sc second | |
// #define pb emplace_back | |
// #define mp make_pair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fenwick tree {{{ | |
template < typename data_type > | |
class fenwick_tree { | |
std::size_t size_; | |
std::vector< data_type > data_; | |
public: | |
fenwick_tree(size_t size) : size_(size), data_(size + 1) {} |
OlderNewer