题解 | #求长方体表面积#

数字颠倒

http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe

#include<bits/stdc++.h>
using namespace std;
int main(){
    //
    string strInput= "";
    list<char> myList;
    while(getline(cin,strInput)){
        for(auto ch:strInput){
            myList.push_front(ch);
        }
        for(auto ch:myList){
            cout<<ch;
        }
        cout<<endl;
    }
    return 0;
}
全部评论

相关推荐

点赞 评论 收藏
分享
03-29 14:19
门头沟学院 Java
你背过凌晨4点的八股文么:加油同学,人生的容错率很高,只是一个暑期罢了,后面还有很多机会!
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务