| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6456 | 孙灏洋 | 奇偶位互换 | C++ | Accepted | 100 | 1 MS | 252 KB | 278 | 2020-09-26 20:01:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; string s; cin>>n; for(int i=1;i<=n;i++){ cin>>s; for(int j=0;j<s.size();j++){ if(j%2==1){ char t=s[j]; s[j]=s[j-1]; s[j-1]=t; } } cout<<s<<endl; } return 0; }