結果
| 問題 |
No.3342 AAB Game
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2025-10-29 01:24:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 154 bytes |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 82,640 KB |
| 実行使用メモリ | 61,192 KB |
| 最終ジャッジ日時 | 2025-11-13 21:02:23 |
| 合計ジャッジ時間 | 3,396 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 39 |
ソースコード
n = int(input())
s = input()
x = 0
for i in range(n):
if s[i] == 'B':
x += i % 2 + 1
if x % 3 == 0:
print('Bob')
else:
print('Alice')
hir355