#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
if(n==1)
cout<<-1<<endl;
else
cout<<n<<' '<<n+1<<' '<<n*(n+1)<<endl;
return 0;
}
743C. Vladik and fractions codeforces
最新推荐文章于 2021-03-23 21:16:47 发布
本文展示了一个简单的C++程序,该程序根据输入的整数n打印一组特定的数值序列。如果n为1,则输出-1;否则输出n, n+1, 和n*(n+1)。本文涉及的基础知识点包括条件判断、输入输出操作等。
920

被折叠的 条评论
为什么被折叠?



