-
Notifications
You must be signed in to change notification settings - Fork 0
/
prince_minimal_template.cpp
68 lines (49 loc) · 1.26 KB
/
prince_minimal_template.cpp
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
64
65
66
67
68
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <unordered_map> //pairs
#include <unordered_set> //hash
#include <utility> //for pair, make_pair
using namespace std;
#define SORT(a, n) sort(begin(a), begin(a) + n) //nlogn sort
#define MOD 1000000007
typedef long long ll;
//int max= *max_element(v.begin(), v.end());
void print_i_v(vector<int> &v){
for(unsigned int j=0; j<v.size(); j++){
cout<<v[j]<<" ";
}
cout<<endl;
}
void print_ii_umap(unordered_map<int, int> m){
unordered_map<int, int> :: iterator itr;
for(itr = m.begin(); itr != m.end(); itr++){
cout << "("<< itr->first << ": " << itr->second << ") ";
}
cout << endl;
}
int main() {
int T; //test cases
cin >> T;
vector<int> results;
for (int i = 1; i < T+1; i++) {
int N;
cin >> N;
//get the list of elements
vector<int> elements;
elements.clear();
for (int j = 0; j < N; j++){
int ele;
cin >> ele;
elements.push_back(ele);
}
//----write from here-----
} //for each test case
//print results
for (unsigned int i = 0; i < results.size(); i++){
cout << results[i] << endl;
}
return 0;
}
//