| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131978 | 周荣浩 | 22数列变换III | C++ | Accepted | 1 MS | 276 KB | 371 | 2025-10-02 15:30:25 |
#include<bits/stdc++.h> using namespace std; long long a[1000001]; int n; void move(int idx){ int tp=a[idx]; for(int i=idx;i<=n;i++){ a[i]=a[i+1]; } a[n]=tp; } int main(){ int k,t; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } cin>>k; while(k--){ cin>>t; move(t); } for(int i=1;i<=n;i++){ cout<<a[i]<<" "; } return 0; }