-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.cpp
More file actions
36 lines (27 loc) · 740 Bytes
/
template.cpp
File metadata and controls
36 lines (27 loc) · 740 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
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define LLINF LLONG_MAX/2
#define IINF INT_MAX/2
typedef long long ll;
typedef vector<vector<pair<int,ll>>> wgraph; // weighted graph
typedef vector<vector<int>> graph; // unweighted graph
typedef vector<vector<int>> imatrix;
typedef vector<vector<ll>> llmatrix;
template <typename T>
void print_vector(vector<T> &vec){
for(unsigned i = 0; i < vec.size()-1; i++){
cout << vec[i] << " ";
}
cout << vec[vec.size()-1] << endl;
}
template <typename T>
void print_matrix(vector<vector<T>> &M){
for(unsigned i = 0; i < M.size(); i++){
print_vector<T>(M[i]);
}
}
int main(){
//std::ios::sync_with_stdio(0);cin.tie(0);
return 0;
}