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;
}

Leave a Reply

Your email address will not be published. Required fields are marked *