結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-07 14:12:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 5,000 ms |
| コード長 | 178 bytes |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 82,168 KB |
| 実行使用メモリ | 58,256 KB |
| 最終ジャッジ日時 | 2024-12-14 13:52:29 |
| 合計ジャッジ時間 | 2,518 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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