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

ASUS ROG Launches The Gladius IV Ace Gaming Mouse

Competitive PC gamers and hardware enthusiasts have something exciting to upgrade their battle stations with this season. Republic of Gamers has officially unveiled the...

Why Viral Kitchen Gadgets Is Currently Breaking the Internet

📢 As an Amazon Associate, I earn from qualifying purchases.After putting the Viral Kitchen Gadgets through a proper 30-day real-world test, I can tell...

Tech Workers Made ChatGPT Drive a Toyota Corolla

In an unexpected and creative showcase of modern artificial intelligence, a group of tech enthusiasts and engineers in San Francisco managed to connect OpenAI's...

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!