Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- long long n,p,count=0,count1=0,count2=0,i;
- cin >> n >> p;int a[n];
- for (i=0;i<n;i++)
- cin >> a[i];
- sort(a,a+n);
- for (i=0;i<n;i++) //cout << a[i];
- {
- count ++ ;
- while (a[i]*count <= p)
- }
- cout << count1 << " " << count2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement