Problem list
Log in
#r03352 · Online Judge > GoldOJ

Anagram Check

Bronze II 1.0 s 256 MB

Two lowercase words are given. Print yes if one is a rearrangement of the other (an anagram), otherwise no.

Input

Two lowercase words, each on its own line, of length $1$ to $30$.

Output

Print yes or no.

Example 1

Input
abc
bca
Output
yes

Example 2

Input
abc
bcd
Output
no
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code