| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150546 | 马俊潇 | 数组中元素交换 | C++ | Output Limit Exceeded | 1 MS | 660 KB | 307 | 2026-03-28 15:54:17 |
#include<iostream> using namespace std; int main(){ int a[100000]={},n,m; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i+2){ if(i%2==0){ m=a[i-1]; a[i-1]=a[i]; a[i-1]=m;} cout<<a[i];} return 0; }