結果

問題 No.290 1010
ユーザー ああいい
提出日時 2022-03-24 22:28:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 77,440 KB
最終ジャッジ日時 2024-10-13 06:10:25
合計ジャッジ時間 2,134 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = input()
import sys
for i in range(len(S)-1):
    if S[i] == S[i+1]:
        print('YES')
        exit()
if len(S) >= 4:
    print('YES')
else:
    print('NO')
0