Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
46452 杨中琦 奇偶位互换 C++ 通过 100 1 MS 248 KB 218 2022-07-13 13:27:14

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int c; char s[50]; cin>>c; for(int i=0;i<c;i++){ cin>>s; for(int j=0;j<strlen(s)/2;j++) cout<<s[j*2+1]<<s[j*2]; cout<<endl; } return 0; }


测评信息: