Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
- using namespace std;
- int main()
- {
- optimize();
- int t;
- cin>>t;
- while(t--)
- {
- int n,x;
- cin>>n>>x;
- vector<int>v(n);
- for(int i=0;i<n;i++)
- {
- cin>>v[i];
- }
- sort(v.begin(),v.end());
- int sz=unique(v.begin(),v.end())-v.begin();
- if(sz==x) cout<<"Good\n";
- else if(sz>x) cout<<"Average\n";
- else cout<<"Bad\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement