結果
| 問題 | No.290 1010 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2015-10-17 02:31:55 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 28 ms / 5,000 ms | 
| コード長 | 259 bytes | 
| コンパイル時間 | 616 ms | 
| コンパイル使用メモリ | 6,912 KB | 
| 実行使用メモリ | 9,344 KB | 
| 最終ジャッジ日時 | 2024-07-22 07:46:04 | 
| 合計ジャッジ時間 | 1,707 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
# -*- 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"
            
            
            
        