Codeforces Round #387 (Div. 2), problem: (A) Display Size Solution in C/C++

Codeforces Round #387 (Div. 2), problem: (A) Display Size Solution in C/C++

int main(){ long long int x,i; scanf("%I64d",&x); i=sqrt(x); while(x%i){ i--; } printf("%I64d %I64d",i,x/i); }

Codeforces Round #387 (Div. 2), problem: (A) Display Size Solution in C/C++

int main(){ long long int x,i; scanf("%I64d",&x); i=sqrt(x); while(x%i){ i--; } printf("%I64d %I64d",i,x/i); }

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

The Real Truth About Viral Kitchen Gadgets Before You Buy

📢 As an Amazon Associate, I earn from qualifying purchases.If you had told me six months ago that a single purchase would change how...

Bird flu could devastate Macquarie Island. Why are we removing the scientists we need to understand it?

Macquarie Island, a remote sub-Antarctic wildlife haven situated midway between Tasmania and Antarctica, is confronting an imminent ecological crisis. As the highly pathogenic H5N1...

The Ultimate Viral Kitchen Gadgets Guide You Didnt Know You Needed

📢 As an Amazon Associate, I earn from qualifying purchases.I stumbled across this while desperately trying to fix a recurring problem in my routine....

Want to stay up to date with the latest news?

We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!