7 条题解

  • 0
    @ 2025-11-16 20:57:46

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

    信息

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