2 条题解

  • 2
    @ 2025-4-18 18:50:07

    #include<bits/stdc++.h> using namespace std; int main() { char a[200],b[200]; int c; gets(a); gets(b); if(strlen(a)>>strlen(b)){ c=strlen(a); } else{ c=strlen(b); } for(int i=0;i<c;i++){ if(a[i]==b[i]){ cout<<i+1<<" "; } } }

    信息

    ID
    330
    时间
    1000ms
    内存
    64MiB
    难度
    6
    标签
    递交数
    80
    已通过
    22
    上传者