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

Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through these links, eBlogarithm may earn a commission at no extra cost to you. Prices and availability are subject to change.
#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;
}

📦 Looking for Codeforces Round 384 Div Problem Vladik? Check the best deals on Amazon.

🛒 Shop Codeforces Round 384 Div Problem Vladik on Amazon

As an Amazon Associate, eBlogarithm earns from qualifying purchases. Prices and availability are subject to change.

Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through these links, eBlogarithm may earn a commission at no extra cost to you. Prices and availability are subject to change.
#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;
}

📦 Looking for Codeforces Round 384 Div Problem Vladik? Check the best deals on Amazon.

🛒 Shop Codeforces Round 384 Div Problem Vladik on Amazon

As an Amazon Associate, eBlogarithm earns from qualifying purchases. Prices and availability are subject to change.

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

Furious Brad Keselowski blasts Carson Hocevar: “His day’s coming and it’s coming hard”

Tensions reached a boiling point in the NASCAR Cup Series garage as veteran driver and team co-owner Brad Keselowski delivered a blistering warning to...

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

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

Where Is the Outrage? Profound Autism Didn’t Used to Exist — Now It’s Everywhere

Decades ago, the landscape of primary education looked radically different than it does today. In the late 1970s, typical elementary school environments rarely featured...

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!