Files
python/TangDou/XiTi/1071.cpp

22 lines
380 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[10];
for (int i = 0; i < 10; ++i) {
cin >> a[i];
}
int temp = a[0];
for (int i = 1; i < 10; ++i) {
a[i - 1] = a[i];
}
a[9] = temp;
//输出
for (int i = 0; i < 10; i++) {
cout << a[i] << " ";
}
cout << endl;
return 0;
}