| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3746 | 陶俊宸 | 奇偶位互换 | C++ | Time Limit Exceeded | 0 | 1000 MS | 252 KB | 362 | 2019-12-21 18:43:25 |
#include<iostream> using namespace std; int main(){ int a,i,j,k; cin>>a; char t,c[a-1][49]; for (i=0;i<a;i++){ scanf("%s",c[i]); } for(i=0;i<a;i++){ for(j=0;j<48;j+=2){ t=c[i][j]; c[i][j]=c[i][j+1]; c[i][j+1]=t; if(c[i][j]=='\0')break; } } for (i=0;i<a;i++){ printf("%s\n",c[i]); } return 0; }