結果
| 問題 | No.3395 Range Flipping Game |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2026-01-05 00:22:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 82,160 KB |
| 実行使用メモリ | 80,160 KB |
| 最終ジャッジ日時 | 2026-01-05 00:22:16 |
| 合計ジャッジ時間 | 5,775 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 9 WA * 21 |
ソースコード
T = int(input())
for _ in range(T):
N = int(input())
S = list(input())
if N<=2:
print('B'*N)
else:
if ''.join(S[:3]) != 'BBB':
S[0]='B'
S[1]='B'
S[2]='A'
print(''.join(S))
H20