-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsol.cpp
More file actions
63 lines (50 loc) · 1.28 KB
/
sol.cpp
File metadata and controls
63 lines (50 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define endl "\n"
#define debug(x) cout << #x << " = " << (x) << endl;
// UTIL
template<class T>
ostream& operator<<(ostream& os, vector<T> v) {
cout << "[";
for(auto &i: v) cout << i << ", ";
cout << "]" << endl;
return os;
}
template <typename K, typename V>
ostream& operator<<(ostream& os, pair<K, V> p) {
os << "{" << p.first << ", " << p.second << "} ";
return os;
}
template <typename K, typename V>
ostream& operator<<(ostream& os, map<K, V> m) {
cout << "{";
for (auto i = m.begin(); i != m.end(); ++i) {
cout << "[" << i.first << ": " << i.second << "]";
}
cout << "}";
return os;
}
// ALGOS
int dx[] = {-1, 0, 0, 1}, dy[] = {0, 1, -1, 0};
// -1 if prime, 0 if a^2 divides n, (-1)^k if k distinct primes
vector<int> mobius(int n) { vector<int> mob(n + 1, 0); mob[1] = 1; for (int i = 1; i <= n; ++i) for (int j = i + i; j <= n; j += i) mob[j] -= mob[i]; return mob; }
// Go
int INF = INT_MAX;
const ll MOD = 1000000007;
void solve() {
}
int main() {
ios::sync_with_stdio(false);
// cin.tie(0); cout.tie(0);
int t = 1;
cin >> t;
while (t--) {
solve();
}
}
/* Check long long
* Facts and data representation
* Constructive? Top bottom up down
*/