Competitive Programming Solutions

GitHub
back to dashboard

A. Square or rectangle

Codeforces - Contest #3.1 · limit: 1s · memory: 256MB · view on codeforces

input

3
10 10
13 200
300 300

output

Square
Rectangle
Square
Main.java
static void solve() {

        // Write your solution here
        int w = in.nextInt();
        int h = in.nextInt();
        out.println((w == h) ? "Square" : "Rectangle");
    }