問題一覧 > 通常問題

No.2312 Turtleman and Gaming Console

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 81
作問者 : tohohogisu
お気に入りにしたユーザー ProblemId : 9293 / 自分の提出
問題文最終更新日: 2023-05-23 08:11:37
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original

Problem Statement

Turtleman the turtle spotted a package of the smash-hit game Coderraria at a supermarket. Since he is interested in Coderraria, he decided to check whether he could play it.
There are $N$ types of gaming consoles. $A_i$ is o if the $i$-th console supports Coderraria, and x otherwise.
However, Turtleman is not rich, so he owns only some of the consoles.
If Turtleman owns console $i$, $B_i$ is o. Otherwise, $B_i$ is x.
Can Turtleman buy and play Coderraria without buying a new console? The price of Coderraria can be ignored.

Input

$N$
$A_1A_2...A_N$
$B_1B_2...B_N$

Constraints
$1 \leq N \leq 100$
$A_i(1 \leq i \leq N)$ and $B_i(1 \leq i \leq N)$ are o or x
$A$ contains at least one o
N is an integer

Output

Print Lucky Turtleman if Turtleman can buy and play Coderraria without buying a new console, and Unlucky Turtleman otherwise.

Sample

Sample 1
Input
3
oxo
xoo
Output
Lucky Turtleman

In this case, Yukirraria supports consoles 1 and 3, and Turtleman owns consoles 2 and 3. Turtleman can play Coderraria by buying the console 3 edition of Yukirraria.

Sample 2
Input
10
oooxxoxoox
xxxxxxxxxx
Output
Unlucky Turtleman

Turtleman has realized that he does not own any consoles.

Sample 3
Input
1
o
x
Output
Unlucky Turtleman

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。