結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
Nagisa
|
| 提出日時 | 2015-10-17 09:02:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 124 ms / 5,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 333 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,356 KB |
| 最終ジャッジ日時 | 2024-07-22 07:55:33 |
| 合計ジャッジ時間 | 2,326 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = int(input())
S = [str(x) for x in input()]
if N == 1:
print("NO")
elif N == 2:
if len(set(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")
Nagisa