結果

問題 No.290 1010
ユーザー maimai
提出日時 2017-05-22 08:20:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 118 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,768 KB
実行使用メモリ 70,460 KB
最終ジャッジ日時 2023-10-19 13:21:57
合計ジャッジ時間 2,660 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
63,676 KB
testcase_01 AC 50 ms
63,676 KB
testcase_02 AC 51 ms
63,676 KB
testcase_03 AC 50 ms
63,676 KB
testcase_04 AC 51 ms
63,676 KB
testcase_05 AC 51 ms
63,676 KB
testcase_06 AC 52 ms
63,676 KB
testcase_07 AC 55 ms
63,676 KB
testcase_08 AC 52 ms
63,676 KB
testcase_09 AC 56 ms
63,676 KB
testcase_10 AC 51 ms
63,676 KB
testcase_11 AC 51 ms
63,676 KB
testcase_12 AC 53 ms
63,676 KB
testcase_13 AC 51 ms
63,676 KB
testcase_14 AC 51 ms
63,676 KB
testcase_15 AC 55 ms
63,676 KB
testcase_16 AC 56 ms
63,676 KB
testcase_17 AC 56 ms
63,676 KB
testcase_18 AC 55 ms
63,676 KB
testcase_19 AC 52 ms
63,676 KB
testcase_20 AC 58 ms
70,460 KB
testcase_21 AC 61 ms
70,460 KB
testcase_22 AC 57 ms
70,460 KB
testcase_23 AC 59 ms
70,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

input()
ss=input()

if re.search(r'00|11|0101|1010', ss[0:4])!=None:
    print('YES')
else:
    print('NO')
0