Unescape Simple String

Programming Interview Hard 4 views
Back to Questions

Problem Description

A quoted string is provided. It can contain escapes: \\\\n, \\\\t, \\\\\\\\, and \\\\\. Unescape it and output two integers: length and checksum (sum of char codes modulo 256).".

Input Format

One quoted string.

Output Format

One line: length checksum.

Constraints

true

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next