結果

問題 No.290 1010
コンテスト
ユーザー roiti46
提出日時 2015-10-17 02:31:55
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 122 ms / 5,000 ms
+ 293µs
コード長 259 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 475 ms
コンパイル使用メモリ 62,684 KB
実行使用メモリ 85,360 KB
最終ジャッジ日時 2026-10-28 20:31:36
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
S = raw_input()

if N >= 4:
    print "YES"
else:
    if "11" in S or "00" in S:
        print "YES"
    else:
        print "NO"
0