Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134889 王丞杰 奇怪的国家 C++ Accepted 1 MS 272 KB 216 2025-11-01 17:05:28

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char s[50]; char a[50]; int main(){ cin>>s>>a; int n=strlen(s); int f=0; for(int i=0;i<n;i++){ if(s[i]==a[i])f=1; else { f=0; } cout<<f; } }