結果

問題 No.290 1010
コンテスト
ユーザー cologne
提出日時 2025-12-02 17:37:06
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 93 ms / 5,000 ms
+ 175µs
コード長 271 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 250 ms
コンパイル使用メモリ 96,368 KB
実行使用メモリ 82,816 KB
最終ジャッジ日時 2026-07-17 06:10:27
合計ジャッジ時間 3,933 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
from functools import reduce
import operator


def input(): return sys.stdin.readline().rstrip('\n')


def main():
    input()
    s = input()
    print('NO' if len(s) < 4 and '00' not in s and '11' not in s else 'YES')


if __name__ == '__main__':
    main()
0