結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2021-09-22 23:15:08 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 16 ms / 5,000 ms |
| + 959µs | |
| コード長 | 146 bytes |
| 記録 | |
| コンパイル時間 | 49 ms |
| コンパイル使用メモリ | 14,464 KB |
| 実行使用メモリ | 12,344 KB |
| 最終ジャッジ日時 | 2026-10-28 20:52:26 |
| 合計ジャッジ時間 | 1,960 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
N = int(input())
S = input()
if N <= 3:
if "00" in S or "11" in S:
print("YES")
else:
print("NO")
else:
print("YES")
tktk_snsn