結果

問題 No.2312 Turtleman and Gaming Console
ユーザー gew1fw
提出日時 2025-06-12 21:30:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 81,832 KB
実行使用メモリ 53,928 KB
最終ジャッジ日時 2025-06-12 21:30:41
合計ジャッジ時間 2,508 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 19 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input().strip()

# Extract N
n = 0
i = 0
while i < len(s) and s[i].isdigit():
    n = n * 10 + int(s[i])
    i += 1

if i >= len(s):
    print("Unlucky Turtleman")
    exit()

a = s[i:i + n]
b = s[i + n:i + n + n]

found = False
for i in range(n):
    if a[i] == 'o' and b[i] == 'o':
        found = True
        break

print("Lucky Turtleman" if found else "Unlucky Turtleman")
0