Competitive Programming Solutions

GitHub
back to dashboard

L. The Brothers

Codeforces - Sheet #1 (Data type - Conditions) · limit: 1s · memory: 256MB · view on codeforces

input

bassam ramadan
ahmed ramadan

output

ARE Brothers
Main.java
static void solve() {

        // Write your solution here
        String  name1, name2;
        in.next();
        name1 = in.next();
        in.next();
        name2 = in.next();

        out.print(name1.equals(name2) ? "ARE Brothers" : "NOT");
    }