| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6455 | 孙灏洋 | 年龄与疾病 | C++ | Wrong Answer | 0 | 0 MS | 260 KB | 278 | 2020-09-26 19:57:53 |
#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; }