Competitive Programming Solutions

GitHub
back to dashboard

A. Create A New String

Codeforces - Sheet #4 (Strings) · limit: 1s · memory: 256MB · view on codeforces

input

LEVEL
ONE

output

5 3
LEVEL ONE
Main.java
static void solve() {

        // Write your solution here
        String firstS = in.next();
        String secondS = in.next();
        out.println(firstS.length() + " " + secondS.length());
        out.println(firstS + " " + secondS);
    }