题解 | #反序输出#
反序输出
https://www.nowcoder.com/practice/171278d170c64d998ab342b3b40171bb
#include<iostream> using namespace std; int main() { string str; while( cin>>str ) cout<<str[3]<<str[2]<<str[1]<<str[0]<<endl; }
反序输出
https://www.nowcoder.com/practice/171278d170c64d998ab342b3b40171bb
#include<iostream> using namespace std; int main() { string str; while( cin>>str ) cout<<str[3]<<str[2]<<str[1]<<str[0]<<endl; }
相关推荐