結果
問題 |
No.2312 Turtleman and Gaming Console
|
ユーザー |
![]() |
提出日時 | 2025-06-12 21:30:15 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 431 bytes |
コンパイル時間 | 411 ms |
コンパイル使用メモリ | 82,204 KB |
実行使用メモリ | 66,724 KB |
最終ジャッジ日時 | 2025-06-12 21:30:41 |
合計ジャッジ時間 | 3,312 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 30 |
ソースコード
s = input().strip() # Extract N n_str = '' i = 0 while i < len(s) and s[i].isdigit(): n_str += s[i] i += 1 n = int(n_str) # Extract A and B a = s[i:i + n] b = s[i + n:i + 2 * n] # Check for any console that supports Coderraria and is owned found = False for i in range(n): if a[i] == 'o' and b[i] == 'o': found = True break if found: print("Lucky Turtleman") else: print("Unlucky Turtleman")