| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3780 | 张曦元 | 奇偶位互换 | C++ | Compile Error | 0 | 0 MS | 0 KB | 320 | 2019-12-21 21:25:12 |
提交时间:2019-12-21 15:06:18 运行 ID: 3719 #include<stdio.h> #include<string.h> int main(){ char s[55],a; int t,i; scanf("%d",&t); while(t--){ scanf("%s",s); for(i=1;i<strlen(s);i++){ if(i&1){ a=s[i]; s[i]=s[i-1]; s[i-1]=a; } } puts(s); } return 0; }