結果
問題 | No.2283 Prohibit Three Consecutive |
ユーザー |
|
提出日時 | 2023-04-28 23:39:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 200 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 77,860 KB |
最終ジャッジ日時 | 2024-11-17 22:29:15 |
合計ジャッジ時間 | 2,098 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 WA * 6 |
ソースコード
T=int(input()) for _ in range(T): n=int(input()) s=input() x=s+s flag=1 S={"111","000","11?00","00?11"} for e in S: if e in x: flag=0 break print("Yes" if flag else "No")