Advertisement
rengetsu

Timus_1001

Jul 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. //Timus 1001
  2. #include <math.h>
  3. #include <iostream>
  4. #include <iomanip>
  5. #define SIZE 128*1024
  6. long long int num[SIZE];
  7. using namespace std;
  8. int main()
  9. {
  10.     int n=0;
  11.     long long int cislo;
  12.     while (cin >> cislo)
  13.     {
  14.         num[n] = cislo;
  15.         n++;
  16.     }
  17.     for(int i=n-1;i>=0;i--)
  18.     {
  19.         cout << fixed << setprecision(4) << (double)sqrt(num[i]) << endl;
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement