結果

問題 No.290 1010
ユーザー matsu7874
提出日時 2015-10-16 23:54:00
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 124 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,796 KB
最終ジャッジ日時 2024-07-22 06:38:09
合計ジャッジ時間 1,901 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 RE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
if '00' in s or '11' in s:
    print('YES')
elif s > 3:
    print('YES')
else:
    print('NO')
0