Advertisement
TimxAG

Untitled

Sep 10th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. long long n,p,count=0,count1=0,count2=0,i;
  6. cin >> n >> p;int a[n];
  7. for (i=0;i<n;i++)
  8. cin >> a[i];
  9. sort(a,a+n);
  10. for (i=0;i<n;i++) //cout << a[i];
  11. {
  12. count ++ ;
  13. while (a[i]*count <= p)
  14. }
  15. cout << count1 << " " << count2;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement