prestige

H

Jul 4th, 2012
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. // acmp_4_07_12_H.cpp : Defines the entry point for the console application.
  2. //
  3. #include <iostream>
  4. #include <fstream>
  5. #include <cmath>
  6. using namespace std;
  7. ifstream in("input.txt");
  8. ofstream out("output.txt");
  9. long long h,k,w;
  10. int main()
  11. {
  12.     cin>>k;
  13.     long long p = sqrt((double)k);
  14.     h=k/p;
  15.     cout<<h<<" "<<p;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment