| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 4142 | 吴泽宇 | 奇偶位互换 | C++ | Accepted | 100 | 0 MS | 252 KB | 263 | 2019-12-29 09:57:49 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; char c[51]; scanf("%d",&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; } }