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 96 times, 1 visits today)

About the Author:

Leave A Comment