| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 4163 | 孙灏洋 | 奇偶位互换 | C++ | Accepted | 100 | 1 MS | 252 KB | 286 | 2019-12-29 21:12:22 |
#include<iostream> using namespace std; int main(){ int n; char c[51]; cin>>n; for(int i=1;i<=n;i++){ scanf("%s",c); int j=0; while(c[j]!='\0'){ if(j%2==0){ cout<<c[j+1]; }else{ cout<<c[j-1]; } j++; } cout<<endl; } return 0; }