結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
cormoran
|
| 提出日時 | 2016-06-07 17:48:26 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 215 ms / 5,000 ms |
| コード長 | 150 bytes |
| 記録 | |
| コンパイル時間 | 505 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 17,112 KB |
| 最終ジャッジ日時 | 2026-04-25 01:17:31 |
| 合計ジャッジ時間 | 4,281 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = input()
S = input()
for i in range(len(S) - 1):
if S[i] == S[i+1] :
print('YES')
exit(0)
print('NO' if len(S) < 4 else 'YES')
cormoran