結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
Nagisa
|
| 提出日時 | 2015-10-17 09:02:26 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 94 ms / 5,000 ms |
| + 930µs | |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 14,592 KB |
| 実行使用メモリ | 20,032 KB |
| 最終ジャッジ日時 | 2026-10-28 20:31:49 |
| 合計ジャッジ時間 | 2,637 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
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