結果
問題 |
No.291 黒い文字列
|
ユーザー |
|
提出日時 | 2015-10-17 02:31:30 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 780 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-07-22 07:45:58 |
合計ジャッジ時間 | 2,697 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 26 |
ソースコード
# -*- 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"