結果

問題 No.3395 Range Flipping Game
コンテスト
ユーザー yuusaan
提出日時 2025-12-02 12:57:15
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 831 ms
コンパイル使用メモリ 81,188 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2025-12-02 12:57:19
合計ジャッジ時間 3,778 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 6 WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<string>

using namespace std;

int main(){
	int T;
	cin >> T;
	for(;T;T--){
		int n;
		cin>>n;
		string s;
		cin >> s;
		if(s.size()==1)cout <<"B" << endl;
		else{
			s[0]='B',s[1]='B';
			cout << s << endl;
		}
	}
	return 0;
}
0