Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
6238 | 陶俊宸 | 奇偶位互换 | C++ | 运行出错 | 0 | 0 MS | 248 KB | 220 | 2020-09-19 21:51:14 |
#include<bits/stdc++.h> using namespace std; int main(){ int c; char s[50]; cin>>c; for(int i=0;i<=c;i++){ gets(s); for(int j=0;j<strlen(s)/2;j++) cout<<s[j*2+1]<<s[j*2]; cout<<endl; } return 0; }