-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCC-CHNUM.cpp
More file actions
34 lines (31 loc) · 820 Bytes
/
CC-CHNUM.cpp
File metadata and controls
34 lines (31 loc) · 820 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
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define setbits(x) __builtin_popcountll(x)
#define zrobits(x) __builtin_ctzll(x)
#define mod 1000000007
#define ps(x,y) fixed<<setprecision(y)<<x
#define w(x) int x; cin>>x; while(x--)
void shammi() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
int main() {
shammi();
w(t) {
ll n; cin >> n;
ll mx, mn, count = 0;
for (ll i = 0; i < n; i++) {
ll num; cin >> num;
if (num < 0) count++;
}
if (count > 0) cout << n - count << " " << count << "\n";
else cout << n << " " << n << "\n";
}
return 0;
}