题解 | 小红的方神题
小红的方神题
https://www.nowcoder.com/practice/655d31e0d4c84eed8853b90d49e35113
#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
if(n == 1 || n == 2){
cout<<-1<<endl;
}else{
cout<<n<<" ";
for(int i = 1;i < n;i++){
cout<<i<<" ";
}
}
}
// 64 位输出请用 printf("%lld")