6 条题解

  • 2
    @ 2025-5-24 22:05:22
    #include<bits/stdc++.h>
    using namespace std;
    #define LL long long
    const int N = 1e4 + 10;
    const int INF = 0x3f3f3f3f;
    int a[N] , s[N] , ans , n;
    bool f;
    int main()
    {
    	cin >> n;
    	for ( int i = 1 ; i <= n ; i++ )
    	{
    		cin >> a[i];
    	}
    	a[0] = a[n];
    	for ( int i = 0 ; i < n ; i++ )
    	{
    		cout << a[i] << " ";
    	}
    	return 0;
    }
    //菜鸟驿站
    //老六专属
    
    sb

    信息

    ID
    1016
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    486
    已通过
    238
    上传者