L. The Brothers – Codeforces Problem Solution in C

Disclaimer: Make sure you tried enough before checking the solution

Problem: https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/L

#include<stdio.h>
int main(){
    char f1[1000],f2[1000],s1[1000],s2[1000];
    scanf("%s %s",f1,f2);
    scanf("%s %s",s1,s2);
    if(strcmp(f2,s2)==0)printf("ARE Brothers");
    else printf("NOT");
    return 0;
}

Assiut University Training – Newcomers solution

Leave a Comment