_takumi

weird25

Apr 6th, 2021
1,036
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int a = 0, temp = 0;
  7.     for (int i = 35000000; i <= 40000000; i += 2) {
  8.         a = i;
  9.         while (!((a % 10) & 1)) {
  10.             a /= 2;
  11.         }
  12.         temp = sqrt(sqrt(a));
  13.         if (temp * temp * temp * temp == a) {
  14.             cout << temp << " ";
  15.             cout << i << endl;
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment