| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70977 | 孙诗皓 | 奇怪的国家 | C++ | Runtime Error | 0 MS | 272 KB | 506 | 2024-04-20 17:14:42 |
#include <iostream> #include<cmath> using namespace std; int main() { string a,b,c; cin>>a>>b; int len=a.size(); for(int i=0;i<len;i++) { if(a[i]=='1' && b[i]=='1') c[i]='1'; if(a[i]=='1' && b[i]=='0') c[i]='0'; if(b[i]=='1' && a[i]=='0') c[i]='0'; if(a[i]=='0' && b[i]=='0') c[i]='1'; } for(int j=0;j<len;j++) { cout<<c[j]; } return 0; }
*** stack smashing detected ***: ./Main terminated