結果

問題 No.290 1010
ユーザー JunOnumaJunOnuma
提出日時 2017-05-22 16:22:52
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 194 bytes
コンパイル時間 454 ms
コンパイル使用メモリ 7,100 KB
実行使用メモリ 7,512 KB
最終ジャッジ日時 2023-10-19 13:40:06
合計ジャッジ時間 1,731 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,416 KB
testcase_01 AC 11 ms
6,416 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 11 ms
6,416 KB
testcase_15 AC 11 ms
6,416 KB
testcase_16 AC 11 ms
6,416 KB
testcase_17 AC 11 ms
6,416 KB
testcase_18 AC 11 ms
6,416 KB
testcase_19 AC 11 ms
6,416 KB
testcase_20 AC 15 ms
7,512 KB
testcase_21 AC 15 ms
7,512 KB
testcase_22 AC 14 ms
7,512 KB
testcase_23 AC 15 ms
7,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
s = raw_input()
if n >= 4:
    print 'YES'
elif n <= 1:
    print 'NO'
elif s[0] == S[1]:
    print 'YES'
elif n == 3 and s[1] == s[2]:
    print 'YES'
else:
    print 'NO'
0