https://i2.wp.com/eblogarithm.com/wp-content/uploads/2016/12/Codeforces-Round-384-Div-2-problem-C-Vladik-and-fractions-Solution-in-CC1.png?fit=640%2C360

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;
}
(Visited 67 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: