| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156009 | 卢语宸 | 奇怪的国家 | C++ | Runtime Error | 0 MS | 268 KB | 262 | 2026-06-19 22:12:54 |
#include<iostream> using namespace std; string s,d; string q=""; int main(){ cin>>s>>d; int n=s.size(); for(int i=0;i<n;i++){ if(s[i]!=d[i]){ q[i]='0'; }else{ q[i]='1'; } } for(int i=0;i<n;i++){ cout<<q[i]; } return 0; }
Runtime Error:Segmentation fault