Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
4272 季洁 奇偶位互换 C++ Accepted 100 1 MS 260 KB 254 2020-01-01 19:36:33

Tests(1/1):


#include<iostream> using namespace std; int main(){ int n; char c[51]; cin>>n; for(int i=0;i<=n-1;i++){ scanf("%s",c); for(int j=0;c[j]!='\0';j++){ if(j%2==0) cout<<c[j+1]; else cout<<c[j-1]; } cout<<endl; } return 0; }


Judgement Protocol: