Codeforces Round #384 (Div. 2), problem: (C) Vladik and fractions Solution in C/C++

#include<stdio.h>
int main(){
	long x;
	scanf("%ld",&x);
	if(x==1)
		printf("-1");
	else
		printf("%ld %ld %ld",x,x+1,x*(x+1));
	return 0;
}
#include<stdio.h>
int main(){
	long x;
	scanf("%ld",&x);
	if(x==1)
		printf("-1");
	else
		printf("%ld %ld %ld",x,x+1,x*(x+1));
	return 0;
}

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

Lane Kiffin reveals how NIL impacts player motivation, says LSU has ‘evolved’ in new era

College football has undergone a seismic shift over the past few years, evolving from a strictly amateur framework into a complex landscape defined by...

Is Viral Kitchen Gadgets Worth Your Money Here Is Our Full Review

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

Rob Schneider leans on faith, holds hope for reconciliation with estranged daughter Elle King

Actor and comedian Rob Schneider is opening up about his spiritual journey, expressing profound hope for a future reconciliation with his estranged daughter, singer-songwriter...

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!