题解 | 神秘石像的镜像序列

神秘石像的镜像序列

https://www.nowcoder.com/practice/fa34eea974234610b6d3d81790cb2949

#include <iostream>
#include <vector>
using namespace std;

int main() {
    int tump;
    vector<int> a;
    while(cin >> tump && tump != 0){
        a.push_back(tump);
    }
    for(int i = a.size()-1; i >=0; i--){
        cout << a[i] << " ";
    }
}
// 64 位输出请用 printf("%lld")

全部评论

相关推荐

03-19 09:58
河海大学 Java
最喜欢春天的奇亚籽很...:同学,是小红书不是小哄书,一眼就能看到的错误
投了多少份简历才上岸
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务