結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
1235486527
|
| 提出日時 | 2019-12-15 11:37:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 264 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 12,920 KB |
| 最終ジャッジ日時 | 2024-07-02 18:11:26 |
| 合計ジャッジ時間 | 1,509 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
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