結果
| 問題 | No.2278 Time Bomb Game 2 |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 13:50:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 448 bytes |
| 記録 | |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 95,720 KB |
| 実行使用メモリ | 83,584 KB |
| 最終ジャッジ日時 | 2026-07-11 10:26:19 |
| 合計ジャッジ時間 | 8,488 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 64 WA * 6 |
ソースコード
n, k, t = map(int, input().split())
c = input().strip()
k -= 1 # Convert to 0-based index
min_steps = float('inf')
# Find the minimal distance to any 'B' from position k
for i in range(n):
if c[i] == 'B':
distance = abs(i - k)
if distance < min_steps:
min_steps = distance
if min_steps > t:
print("Bob")
else:
rem = t - min_steps
if rem % 2 == 0:
print("Alice")
else:
print("Bob")
gew1fw