题解 | #倒序#
倒序
https://ac.nowcoder.com/acm/problem/21993
复杂了
#include <iostream>
using namespace std;
int main()
{
int array[3];
int i;
for(i = 0;i < 3;i++){
cin>>array[i];
}
for(i--;i>=0;i--){
cout<<array[i]<<" ";
}
return 0;
}
正常想法
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
cout<<c<<" "<<b<<" "<<a;
return 0;
}