题解 | 神秘石像的镜像序列
神秘石像的镜像序列
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")
查看10道真题和解析