#C480. Isomorphic Strings Checker
Isomorphic Strings Checker
Isomorphic Strings Checker
Given two strings s1 and s2, determine if they are isomorphic. Two strings are isomorphic if there exists a one-to-one mapping between every character of the first string to a character of the second string such that the order is preserved. In other words,
$$\forall i,j,\; (s_{1,i} = s_{1,j} \iff s_{2,i} = s_{2,j})$$
Your task is to write a program that reads the two strings from standard input and prints True
if the strings are isomorphic, and False
otherwise.
inputFormat
The input consists of two lines:
- The first line contains the string s1.
- The second line contains the string s2.
Both strings can contain any printable characters.
outputFormat
Output a single line: True
if the two strings are isomorphic, and False
otherwise.
egg
add
True