結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
1235486527
|
| 提出日時 | 2019-12-15 11:37:04 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 18 ms / 5,000 ms |
| + 294µs | |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 48 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 12,340 KB |
| 最終ジャッジ日時 | 2026-10-28 20:47:52 |
| 合計ジャッジ時間 | 2,195 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
N = int(input())
S = input()
if N == 1:
print('NO')
elif N == 2:
if S[0] == S[1]:
print('YES')
else:
print('NO')
elif N == 3:
if S[0] == S[1] or S[1] == S[2]:
print('YES')
else:
print('NO')
else:
print('YES')
1235486527