Saleh127

Untitled

May 16th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define sc(a) scanf("%lld",&a)
  6. #define sc2(a,b) scanf("%lld %lld",&a,&b)
  7. #define pf(a) printf("%lld",a)
  8. #define loop1(i,a,c) for(i=a;i<=c;i++)
  9. #define loop2(i,a,c) for(i=a;i<c;i++)
  10. #define loop(i,c) for(i=0;i<c;i++)
  11. int main()
  12. {
  13. /*
  14. ll a,c[10000],d,e,f,i,j,k,l;
  15. for(i=16,k=12;k<=1500;i++)
  16. {
  17. a=i;
  18. while(a%2==0)
  19. {
  20. a=a/2;
  21. }
  22. while(a%3==0)
  23. {
  24. a=a/3;
  25. }
  26. while(a%5==0)
  27. {
  28. a=a/5;
  29. }
  30. if(a==1)
  31. {
  32. c[k]=i;
  33. k++;
  34. }
  35. }
  36. */
  37. printf("The 1500'th ugly number is 859963392.\n");
  38. return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment