Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // acmp_4_07_12_H.cpp : Defines the entry point for the console application.
- //
- #include <iostream>
- #include <fstream>
- #include <cmath>
- using namespace std;
- ifstream in("input.txt");
- ofstream out("output.txt");
- long long h,k,w;
- int main()
- {
- cin>>k;
- long long p = sqrt((double)k);
- h=k/p;
- cout<<h<<" "<<p;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment