Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72522 万隽宇 数组中元素交换 C++ Wrong Answer 1 MS 268 KB 320 2024-05-09 18:37:24

Tests(1/10):


Code:

# include<iostream> using namespace std; int main(){ int c,d=0; cin>>c; int b[c]; for(int i=0;c>i;i++){ cin>>b[i]; } for(int i=0;c-1>i;i+=2){ d=b[i]; b[i]=b[i+1]; b[i+1]=d; } for(int i=0;c>i;i++){ cout<<b[i]; } return 0; }


Run Info:

------Input------
5 81 43 69 80 80
------Answer-----
43 81 80 69 80
------Your output-----
4381806980