結果

問題 No.2343 (l+r)/2
ユーザー prussian_coderprussian_coder
提出日時 2023-06-11 08:14:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 78,948 KB
最終ジャッジ日時 2023-08-31 01:50:23
合計ジャッジ時間 2,926 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,468 KB
testcase_01 AC 540 ms
78,392 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 70 ms
71,520 KB
testcase_05 AC 71 ms
71,428 KB
testcase_06 AC 68 ms
71,448 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 69 ms
71,376 KB
testcase_11 AC 70 ms
71,856 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 73 ms
71,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
def solve():
	N=int(input())
	S=input()
	if S[0]!=S[-1]:
		return True
	else:
		x=str(1-int(S[0]))
		return x+" "+x in S
for _ in range(T):
	print(["No","Yes"][solve()])

	
0