-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmarch_cook.cpp
More file actions
31 lines (30 loc) · 852 Bytes
/
march_cook.cpp
File metadata and controls
31 lines (30 loc) · 852 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
#include <bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL)
#define endl '\n'
#define int long long int
using namespace std;
#define pii pair <int, int>
#define pb push_back
#define deb(x) cout << #x << " " << x << endl
#define deb2(x, y) cout << #x << " " << x << " " << #y << " " << y << endl
#define Loop(s, e, itr) for (int itr = s; itr < e; itr++)
#define loop(n) for(int i = 0; i < n; i++)
#define vin vector<int>
#define w(t) int tc; cin >> tc; for(int t = 1; t <= tc; t++)
#define vec vector
int32_t main(){
fastio;
int n;
int max, p;
int p2;
w(t){
cin >> n;
vin arr(n);
loop(n) cin >> arr[i];
max = INT_MIN;
loop(n) max = max < arr[i] ? arr[i] : max;
int pos = -1;
loop(n) if(arr[i] == max){pos = i; break;}
vin ar2(2*n);
}
}