結果
| 問題 |
No.2278 Time Bomb Game 2
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-31 17:40:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 450 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 61,312 KB |
| 最終ジャッジ日時 | 2025-03-31 17:42:02 |
| 合計ジャッジ時間 | 5,569 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 60 WA * 10 |
ソースコード
n, k, t = map(int, input().split())
c = input().strip()
current_char = c[k-1]
required_char = 'B' if current_char == 'A' else 'A'
found = False
for i in range(n):
if c[i] == required_char:
distance = abs((i + 1) - k)
if distance <= t and (t - distance) % 2 == 0:
found = True
break
if found:
print('Alice' if current_char == 'A' else 'Bob')
else:
print('Bob' if current_char == 'A' else 'Alice')
lam6er