結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
Nagisa
|
| 提出日時 | 2015-10-17 09:02:26 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
AC
|
| 実行時間 | 157 ms / 5,000 ms |
| + 549µs | |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 21,292 KB |
| 実行使用メモリ | 25,488 KB |
| 最終ジャッジ日時 | 2026-08-23 03:49:20 |
| 合計ジャッジ時間 | 4,512 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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