結果
問題 | No.290 1010 |
ユーザー |
![]() |
提出日時 | 2021-12-07 19:55:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 5,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 57,856 KB |
最終ジャッジ日時 | 2024-07-07 23:02:31 |
合計ジャッジ時間 | 1,753 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
n = int(input()) s = str(input()) if s.count('00'): print('YES') elif s.count('11'): print('YES') elif s.count('1010'): print('YES') elif s.count('0101'): print('YES') else: print('NO')