Untitled

Anonymous
plain_text
10/12/2024 5:14 PM
348 B
16
Indexable
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
for(int i = 0; i < n; ++i){
    string s1;
    cin>>s1;
    string s2;
    cin>>s2;
    if(s1[i] == s2[i]){
        cout<<"YES";

    }else {
    cout<<"NO";
    }
}
}
Editor is loading...
Leave a Comment