Files
python/TangDou/XiTi/1071.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

22 lines
380 B
C++

#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;
}