結果
問題 |
No.2283 Prohibit Three Consecutive
|
ユーザー |
|
提出日時 | 2023-04-28 23:42:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 81,856 KB |
実行使用メモリ | 77,724 KB |
最終ジャッジ日時 | 2024-11-17 22:31:25 |
合計ジャッジ時間 | 1,551 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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","11?0?11","00?1?00"} for e in S: if e in x: flag=0 break print("Yes" if flag else "No")