-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.cpp
More file actions
55 lines (43 loc) · 1014 Bytes
/
template.cpp
File metadata and controls
55 lines (43 loc) · 1014 Bytes
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
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = double;
#define vi vector<int>
#define pii pair<int,int>
#define pb push_back
#define mkp make_pair
#define endl '\n'
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
ll gauss(ll a){ return a*(a+1)/2; } // Sum 1 to a
ll teto(ll a, ll b){ return (a+b-1)/b; } // rounded up division
// Prime numbers generator
const int MAXN = 1e5;
vector<int> primos;
void genprimos(){
vector<bool> is_prime(MAXN+1, true);
is_prime[0] = is_prime[1] = false;
for(int i = 2; i <= MAXN; i++){
if(is_prime[i]){
primos.pb(i);
for(int j = i*i; j <= MAXN; j += i){
is_prime[j] = false;
}
}
}
}
void solve(){
// solve here
}
const bool TEST_CASES = 1;
int main(){
// genprimos();
ios_base::sync_with_stdio(0);
cin.tie(0);
int tc = 1;
if (TEST_CASES) cin >> tc;
while(tc--){
solve();
}
return 0;
}