Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
4180 | 陈一畅 | 奇偶位互换 | C++ | Runtime Error | 0 | 0 MS | 248 KB | 223 | 2019-12-30 21:53:29 |
#include<iostream> using namespace std; int main(){ char a[51],i=0; int b; gets(a); scanf("%d",b); while(a[i]!='\0'){ if(a[i]=='1') { cout<<0; }else{ cout<<1; } i++; } return 0; }