Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
3927 龚施宇 奇偶位互换 C++ Runtime Error 0 0 MS 248 KB 256 2019-12-27 20:44:06

Tests(0/1):


#include<iostream> using namespace std; int main(){ int n; char c[51]; scanf("%d",n); for(int i=0;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++; } } return 0; }


Judgement Protocol: