文件目录

#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int a[100] = {};
    for (int i = 0; i < n; i++)
        cin >> a[i];
    for (int i = 1; i < n; i++)
        cout << a[i] << " ";
    cout << a[0];
    return 0;
}
int ans1()
{
    int n;
    cin >> n;
    int a[100] = {};
    for (int i = 0; i < n; i++)
        cin >> a[i];
    int t = a[0];
    for (int i = 1; i < n; i++)
        a[i - 1] = a[i];
    a[n - 1] = t;
    for (int i = 0; i < n; i++)
        cout << a[i] << " ";
    return 0;
}