fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <cstdint>
  4. #include <numeric>
  5.  
  6. bool IsJoint(std::uintmax_t a, std::uintmax_t n) {
  7.  
  8. if (std::gcd(a, n) != 1) return false;
  9.  
  10. return ((std::uintmax_t)std::pow(a,n) % (a % n))!=0;
  11.  
  12. }
  13.  
  14. bool section2(std::uintmax_t N,double r,double e) {
  15. double Ne = std::pow((double)N, std::exp(e));
  16. double Or = std::fmod(1, r);
  17.  
  18. if (std::fmod(Ne, Or) != 0) return false;
  19.  
  20. return Ne>4*std::log2(N);
  21. }
  22.  
  23. bool Section3(double a, double n, double r) {
  24. if((a<=r)&&((1<a)&&(a<n))
  25. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty