結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-17 02:31:55 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 120 ms / 5,000 ms |
| + 174µs | |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 97,408 KB |
| 最終ジャッジ日時 | 2026-07-17 23:00:48 |
| 合計ジャッジ時間 | 4,614 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"