結果

問題 No.290 1010
ユーザー NoneNone
提出日時 2021-05-05 02:56:10
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 129 bytes
コンパイル時間 1,052 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 74,268 KB
最終ジャッジ日時 2023-10-01 04:56:49
合計ジャッジ時間 3,907 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,188 KB
testcase_01 AC 69 ms
71,400 KB
testcase_02 AC 70 ms
71,136 KB
testcase_03 AC 71 ms
71,324 KB
testcase_04 AC 70 ms
71,272 KB
testcase_05 AC 71 ms
71,240 KB
testcase_06 AC 71 ms
71,268 KB
testcase_07 AC 70 ms
71,280 KB
testcase_08 AC 71 ms
71,188 KB
testcase_09 AC 70 ms
71,268 KB
testcase_10 AC 71 ms
71,308 KB
testcase_11 AC 71 ms
71,564 KB
testcase_12 AC 71 ms
71,488 KB
testcase_13 AC 70 ms
71,272 KB
testcase_14 AC 71 ms
71,272 KB
testcase_15 AC 71 ms
71,424 KB
testcase_16 AC 71 ms
71,484 KB
testcase_17 AC 71 ms
71,484 KB
testcase_18 AC 70 ms
71,276 KB
testcase_19 AC 70 ms
71,272 KB
testcase_20 AC 77 ms
73,792 KB
testcase_21 AC 80 ms
74,104 KB
testcase_22 AC 81 ms
74,064 KB
testcase_23 AC 76 ms
74,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
S=input().rstrip()
if "00" in S or "11" in S or "0101" in S or "1010" in S:
    print("YES")
else:
    print("NO")
0