結果

問題 No.290 1010
ユーザー brthyyjpbrthyyjp
提出日時 2021-12-07 19:55:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 74,012 KB
最終ジャッジ日時 2023-09-22 06:19:47
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,124 KB
testcase_01 AC 81 ms
71,020 KB
testcase_02 AC 79 ms
71,016 KB
testcase_03 AC 78 ms
71,308 KB
testcase_04 AC 78 ms
71,124 KB
testcase_05 AC 79 ms
71,276 KB
testcase_06 AC 79 ms
71,120 KB
testcase_07 AC 79 ms
71,016 KB
testcase_08 AC 80 ms
71,120 KB
testcase_09 AC 82 ms
70,960 KB
testcase_10 AC 80 ms
71,196 KB
testcase_11 AC 80 ms
71,184 KB
testcase_12 AC 78 ms
70,756 KB
testcase_13 AC 78 ms
70,964 KB
testcase_14 AC 80 ms
71,064 KB
testcase_15 AC 77 ms
71,296 KB
testcase_16 AC 80 ms
70,764 KB
testcase_17 AC 78 ms
70,916 KB
testcase_18 AC 80 ms
71,180 KB
testcase_19 AC 79 ms
71,116 KB
testcase_20 AC 86 ms
73,700 KB
testcase_21 AC 88 ms
73,812 KB
testcase_22 AC 92 ms
73,872 KB
testcase_23 AC 83 ms
74,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = str(input())

if s.count('00'):
    print('YES')
elif s.count('11'):
    print('YES')
elif s.count('1010'):
    print('YES')
elif s.count('0101'):
    print('YES')
else:
    print('NO')
0