結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-07 14:12:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 58,240 KB |
| 最終ジャッジ日時 | 2026-05-25 07:42:05 |
| 合計ジャッジ時間 | 2,939 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = int(input())
S = input()
if N >= 4:
print("YES")
else:
for i in range(N - 1):
if S[i] == S[i + 1]:
print("YES")
exit()
print("NO")
rlangevin