-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathtemplate.cpp
More file actions
58 lines (47 loc) · 1.17 KB
/
template.cpp
File metadata and controls
58 lines (47 loc) · 1.17 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
#include <bits/stdc++.h>
#define fastIO ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define mod 1000000007
// #define mx 1000005
#define INF LLONG_MAX
#define debug(a) cout<<"\n----------------------"<<a<<"-------------------------"
#define mem(a,val) memset(a,val,sizeof(a))
#define rep(i,j,n) for(i=j;i<n;i++)
#define invrep(i,j,n) for (i = j-1; i >=n ; --i)
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define prec(n) fixed<<setprecision(n)
#define bit(n, i) (((n) >> (i)) & 1)
#define bitcount(n) __builtin_popcountll(n)
#define bin_long stoi(to_string(x), nullptr, 2);
using namespace std;
typedef long double ld;
ld pi=2.0*acos(0.0);
typedef long long int ll;
typedef pair<ll,ll> pl;
mt19937 rng32(chrono::steady_clock::now().time_since_epoch().count());
int main(int argc, char const *argv[])
{
#ifndef ONLINE_JUDGE
#define mx 1005
#else
#define mx 1000005
#endif
fastIO
ll a,b,c,i,j,k,f,r,x,y,z;
ll n,m,p,q,t;
ll A[mx];
memset(A,-1,sizeof(A));
cin>>t;
while(t--){
r=f=0;
cin>>n;
rep(i,0,n){
cin>>A[i];
}
sort(A,A+n);
cout<<r<<"\n";
}
return 0;
}