Tranvick

Untitled

Nov 23rd, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <cstdio>
  2. int main(){freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);long long x;scanf("%I64d",&x);if(!(x&1)){printf("%d %I64d",2,x/2ll);return 0;}for(long long i=3;;i+=2)if(!(x%i)){printf("%I64d %I64d",i,x/i);return 0;}}
  3.  
Advertisement
Add Comment
Please, Sign In to add comment